Skip to content

Instantly share code, notes, and snippets.

@almozavr
Created June 2, 2013 07:19
Show Gist options
  • Save almozavr/5692901 to your computer and use it in GitHub Desktop.
Save almozavr/5692901 to your computer and use it in GitHub Desktop.
public class BusFragment extends Fragment {
@Override
public void onStart() {
super.onStart();
App.uiBus.registerSticky(this);
}
@Override
public void onStop() {
super.onStop();
App.uiBus.unregister(this);
}
protected void onEvent(Object object) {
App.uiBus.removeStickyEvent(object);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment