I have an abstract fragment in Android which I perform the register and unregister method from the otto bus. Also I have a @Subscribe
for a method inside this class.
public abstract class MyBaseFrag extends Fragment {
@Override
public void onResume() {
super.onResume();
bus.register(this);
}
// unregister onPause...
@Subscribe
public void loadMapOnAnimationEnd(TransitionAnimationEndEvent event) {
loadMap();
}
}
I have another fragment which extends from this and is the one it's being executed. I send the event but the method is never called.
public class MyFragment extends MyBaseFrag {
// my code here..
}
Problem:
I send the event but the method is never called.