Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Please include a sample project that reproduces your issue.
jb...@google.com <jb...@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?
Description
If you add Fragment A to the fragment manager without adding to back stack then you add fragment B to the fragment manager with adding to the back stack. When you attempt to use either System or Gesture back to go back to Fragment A, fragment manager incorrectly finishes the Activity.
The reason for this is that when fragment manager starts the predictive back gesture, it immediately removes the transitioning operation from the back stack, then updates the enabled state of its onBackPressedCallback causing it to be disabled. Since there are no enabled callbacks in the onBackPressedDispatcher, it immediately finishes the Activity.
We should still considering the transitioning operation as part of the backstack until it completes.