What is the best practice to notify all the fragments that are in backstack on some change?
I try to use EventBus
and every Fragment subscribe to the event, then when change is happening the main activity send post event to all the subscribers.
Only onDestroy
I Unsubscribe the destroyed fragment.
I don't like this solution because if there are many fragments in backstack, it can be heavy + lots of listeners simultany.
my application, has infinity drill down, from one fragment you replace to other (and add to backstack) and you can replace again (and add to backstack) and so on..., with no end.