I read documentation here but there is no clear explanation will event trigger if configChanges occur in activity or if activity in background with EventBus.getDefault().post()
. Now I'm using EventBus like this:
EventBus.getDefault.postSticky(new SomeEvent());
public void onEventMainThread(SomeEvent someEvent){
EventBus.getDefault().removeStickyEvent(someEvent);
}
I would like to avoid this boilerplate code.