For #14251 - Dont show CFR if were navigating to Search

pull/35/head
Jeff Boek 4 years ago
parent c73870b794
commit 3713b5a63a

@ -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