Fixed
Status Update
Comments
lp...@google.com <lp...@google.com>
il...@google.com <il...@google.com> #2
Please include a sample project that reproduces your issue.
il...@google.com <il...@google.com>
il...@google.com <il...@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
Version used: 1.1.0-alpha01, 1.1.0-alpha02, 1.1.0-alpha03
Working in: 1.0.0
When a DialogFragment is dismissed by configuration change (i.e rotation), it seems to no longer have access to FragmentManager, and hence its target Fragment.
Attached sample project. To reproduce, rotate the device and it should crash with a null pointer exception as fragment manager is null. Change Fragment dependency to 1.0.0 in build.gradle and then it works fine.