Skip to content

Instantly share code, notes, and snippets.

@lawloretienne
Created February 15, 2017 01:17
Show Gist options
  • Save lawloretienne/d0fc102570a4bb87b13f92e1e6ae2ad2 to your computer and use it in GitHub Desktop.
Save lawloretienne/d0fc102570a4bb87b13f92e1e6ae2ad2 to your computer and use it in GitHub Desktop.
public class MoviesFragment extends BaseFragment {
// region Member Variables
private CompositeSubscription compositeSubscription;
// endregion
// region Lifecycle Methods
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
compositeSubscription = new CompositeSubscription();
}
@Override
public void onDestroy() {
super.onDestroy();
compositeSubscription.unsubscribe();
}
// endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment