Skip to content Skip to sidebar Skip to footer

Otto: Fragment Subscriptions Not Receiving Events

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 Bu

Solution 1:

I figured out that the class that was posting the events to the bus, but wasn't running on the main/ui thread which was causing inconstancies with being able to see changes happen in the ui and reacting properly. So now my class is posting on the main thread and I removed the ThreadEnforcer.ANY from creating my bus so that now everything for sure is running on the main thread.


Post a Comment for "Otto: Fragment Subscriptions Not Receiving Events"