[fenix] Do not show home screen behind search if we have search terms
commitd21eae98c31b6f40c3351a39bbf5e22a6d085a4b
authorGrisha Kruglov <gkruglov@mozilla.com>
Thu, 30 Sep 2021 17:45:10 +0000 (30 10:45 -0700)
committerChristian Sadilek <christian.sadilek@gmail.com>
Thu, 30 Sep 2021 22:14:16 +0000 (30 18:14 -0400)
tree95fe49e31c8b671262978f96a0793df02b2f7ab1
parent40580ebe45dc0e3249b35b8735d0c538b3cae340
[fenix] Do not show home screen behind search if we have search terms

Home screen isn't actually visible in case we're displaying awesomebar
search results. The navigation is thus unnecessary and actually causes visual
jankiness as we display home for a moment before covering it up with
search results.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/components/toolbar/DefaultBrowserToolbarControllerTest.kt