Fixed
Status Update
Comments
sa...@google.com <sa...@google.com> #2
Comment has been deleted.
ap...@google.com <ap...@google.com> #3
yea i'll take it.
sa...@google.com <sa...@google.com>
sr...@gmail.com <sr...@gmail.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
Description
The
FragmentManager
should be converted over to saving its state using theSavedStateRegistry
architecture component.We should provide
FragmentManager
with aSavedStateRegistryController
and move all of the code from theFragmentActivity
'sinit()
into theattachController()
method ofFragmentManager
.It currently relies on the
SavedStateRegistry
of theFragmentActivity
which hacked together methods likemarkFragmentsCreated()
andmFragments.saveAllState()
that can likely be called directly from theFragmentManager
.The more complex piece is moving the
OnContextAvailableListener()
over sinceFragmentManager
does not have the same signal for when theContext
is immediately available.