Fixed
Status Update
Comments
sa...@google.com <sa...@google.com> #2
Comment has been deleted.
ap...@google.com <ap...@google.com> #3
Here is the sample project.
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
sa...@google.com <sa...@google.com>
sr...@gmail.com <sr...@gmail.com> #4
Hello, have you checked sample project? I hope it will help find the issue.
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.