Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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