Problem: the only way for childDelegate to save its delegateTag is to call onSaveInstanceState()
However, this method is not called in Fragment when fragment goes to backStack.
So, I'm calling MvpDelegate.onSaveInstanceState() manually on each childDelegate in MvpDelegate.onDestroyView() method since after calling this method childDelegate become destroyed and losing its connection to parentDelegate
Problem: the only way for
childDelegate
to save itsdelegateTag
is to callonSaveInstanceState()
However, this method is not called inFragment
when fragment goes to backStack.So, I'm calling
MvpDelegate.onSaveInstanceState()
manually on eachchildDelegate
inMvpDelegate.onDestroyView()
method since after calling this methodchildDelegate
become destroyed and losing its connection toparentDelegate