Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Please include a sample project that reproduces your issue.
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?
ap...@google.com <ap...@google.com> #4
Hello, have you checked sample project? I hope it will help find the issue.
ap...@google.com <ap...@google.com> #5
ap...@google.com <ap...@google.com> #6
Hello, any update please?
ap...@google.com <ap...@google.com> #7
Hello
I raised similar issue with this ticket
This makes the SearchView unusable/broken when fragments are changed (i.e base on searchView input query)
What can we do to fix this problem? What is the progress of work on solving this problem?
ap...@google.com <ap...@google.com> #8
@7 Check @5 for a workaround.
jb...@google.com <jb...@google.com> #9
Hi, i am also facing this issue after we dismiss a DialogFragment, the callback comes in the onPrepareOptionsMenu(), which is causing the issues for me.
Any idea on when it will be fixed?
Any idea on when it will be fixed?
Description
Component used: Fragment Version used: 1.4.0-alpha01
Each instance of
androidx.fragment.strictmode.Violation
tracks a specific type of StrictMode violation. Ideally, each subclass of Violation should have enough structured information (i.e., getters) to allow developers to verify exactly what caused the violation. This could include the Fragment instance itself or violation specific information. This would greatly improve the ability to have custom loggers extract this information and parse it in a useful way.The base
Violation
class should have agetFragment()
method that returns a NonNullFragment
instance that caused the Violation.Examples of information I'd expect to be available:
FragmentReuseViolation
:mRemoved
flag with amPreviousWho
nullable String).FragmentTagUsageViolation
:ViewGroup
that the Fragment would have been added to.RetainInstanceUsageViolation
:RetainInstanceUsageViolation
:SetRetainInstanceUsageViolation
andGetRetainInstanceUsageViolation
to allow distinguishing the two casesSetUserVisibleHintViolation
:boolean
indicating on whether the fragment was being setisVisibleToUser
or notTargetFragmentUsageViolation
TargetFragmentUsageViolation
:SetTargetFragmentUsageViolation
would include the targetFragment
instance and the intrequestCode
GetTargetFragmentUsageViolation
(no additional information)GetTargetFragmentRequestCodeUsageViolation
(no additional information)WrongFragmentContainerViolation
ViewGroup
container that the Fragment was trying to be added to