You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dealing with Multiple Fragments in a ViewPager #22
I have a couple of fragments in a viewPager2. Two of the fragments have persistent search views. When I toggle back & forth between the fragments, tapping to activate the search query does not work.
I was thinking it's related to the Lifecycle of the fragments which toggles between pause & resume depending on which fragment is active. Do we need to do anything special when multiple instances of the persistent search views are active at a time?
@artemius30 Thanks for sharing your solution. However, it's more like a workaround and the behavior is definitely not right. I suspect that there might be some issue with loosing focus over the PersistentSearchView.
If someone can set up a reproducible repo and send me a link to it so that I could take a look when I have time, I'll be extremely thankful.
Thanks for the update on this issue. @artemius30 saw the same issue as I did. Do we have any update on a potential fix so far? For now, I will update my code to use the fix mentioned above.
I was also wondering if there's a way to customize or remove the speech to text Google warning.
Activity
mars885 commentedon Oct 27, 2021
Hello.
Can you set up a sample repo project and send me a link so that I could take a look?
Thanks.
mars885 commentedon Nov 17, 2021
@artemius30 Thanks for sharing your solution. However, it's more like a workaround and the behavior is definitely not right. I suspect that there might be some issue with loosing focus over the
PersistentSearchView.If someone can set up a reproducible repo and send me a link to it so that I could take a look when I have time, I'll be extremely thankful.
irvine752 commentedon Nov 24, 2021
Thanks for the update on this issue. @artemius30 saw the same issue as I did. Do we have any update on a potential fix so far? For now, I will update my code to use the fix mentioned above.
I was also wondering if there's a way to customize or remove the speech to text Google warning.
irvine752 commentedon Dec 12, 2021
@mars885 Any updates so far?
@artemius30 Can the patch be used with ViewBinding? I'm not sure if it's possible to reinitialize the SearchView.