You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a parent activity that contains a @Subscribe method. When I try to register the parent using bus.register(this), the AnnotatedHandlerFinder finds all @Subscribe methods in the child class, not in the parent.
That's because: AnnotatedHandlerFinder.findAllSubscribers() take the class of the instance and not the parent.
A solution would be to add a new method bus.register(this, listenerClass), where listenerClassis the type of the parent object?
I have a parent activity that contains a
@Subscribemethod. When I try to register the parent usingbus.register(this), theAnnotatedHandlerFinderfinds all@Subscribemethods in the child class, not in the parent.That's because:
AnnotatedHandlerFinder.findAllSubscribers()take the class of the instance and not the parent.A solution would be to add a new method
bus.register(this, listenerClass), wherelistenerClassis the type of the parent object?