[fenix] For https://github.com/mozilla-mobile/fenix/issues/14251 - Dont show CFR if were navigating to Search

pull/600/head
Jeff Boek 4 years ago
parent 4e2b53b340
commit befdf304c4

@ -400,7 +400,8 @@ class HomeFragment : Fragment() {
// We call this onLayout so that the bottom bar width is correctly set for us to center
// the CFR in.
view.toolbar_wrapper.doOnLayout {
if (!browsingModeManager.mode.isPrivate) {
val willNavigateToSearch = !bundleArgs.getBoolean(FOCUS_ON_ADDRESS_BAR) && FeatureFlags.newSearchExperience
if (!browsingModeManager.mode.isPrivate && !willNavigateToSearch) {
SearchWidgetCFR(
context = view.context,
settings = view.context.settings(),

Loading…
Cancel
Save