I've got a fragment and have registered and unregistered the bus in the fragments onResume
and onPause
methods. Using the following BusProvider.getInstance().register(this);
and BusProvider.getInstance().unregister(this);
.
I have a subscription defined like so:
@Subscribe public void onLogin(LoggedInEvent event) {
// Do Something
}
I also have another subscription for the same event in the activity the fragment is attached to and that subscription reacts and does it's thing. So my question is why doesn't my fragment receive the event for LoggedInEvent
?
Edit:
I've also registered/unregistered the bus in my activity's onResume
and onPause
methods as well.
Edit 2:
The bus was instantiated with ThreadEnforcer.ANY