[fenix] For https://github.com/mozilla-mobile/fenix/issues/27016 - Ensure smooth...
commit0e22ab8f6f7337b040401dc9cfba379a805a197d
authorMugurell <Mugurell@users.noreply.github.com>
Thu, 6 Oct 2022 13:04:34 +0000 (6 16:04 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Oct 2022 06:13:12 +0000 (10 06:13 +0000)
tree24ee9db82bcf8b466d4106f47af11e94c2f4abc5
parentd4ecf6b932a18404158e926692bc91f1b680ab20
[fenix] For https://github.com/mozilla-mobile/fenix/issues/27016 - Ensure smooth search UX after the MR onboarding is closed

If the app is opened from the search widget and the MR onboarding is shown then
the backstack will have the following structure:
- root, homeFragment, searchDialogFragment, onboardingFragment
as opposed to otherwise
- root, homeFragment, searchDialogFragment.

This patch allows to avoid the MR onboarding fragment causing the
SearchDialogFragment to not know that below it is the HomeFragment and
consequently not applying transparency or propagate user touches to the parent
Activity.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/search/SearchDialogFragmentTest.kt [new file with mode: 0644]