From 0a412a1a6ae218e3ea0e9f67604c37c5355eb61c Mon Sep 17 00:00:00 2001 From: Mihai Adrian <48995920+mcarare@users.noreply.github.com> Date: Thu, 9 Jan 2020 23:26:33 +0200 Subject: [PATCH] For #6992 Always hide toolbar when showing find in page bar (#7567) --- .../org/mozilla/fenix/components/FindInPageIntegration.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt b/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt index e8b8385ba..774c8b7f3 100644 --- a/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt +++ b/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt @@ -7,7 +7,6 @@ package org.mozilla.fenix.components import android.view.View import android.view.ViewStub import mozilla.components.browser.state.selector.findCustomTabOrSelectedTab -import mozilla.components.browser.state.state.CustomTabSessionState import mozilla.components.browser.state.store.BrowserStore import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.concept.engine.EngineView @@ -33,11 +32,8 @@ class FindInPageIntegration( override fun onLaunch(view: View, feature: LifecycleAwareFeature) { store.state.findCustomTabOrSelectedTab(sessionId)?.let { tab -> - if (tab !is CustomTabSessionState) { - // Hide the toolbar to display find in page query (only - // needs to be done for regular tabs with bottom toolbar). - toolbar.visibility = View.GONE - } + // Always hide the toolbar and display find in page query + toolbar.visibility = View.GONE view.visibility = View.VISIBLE (feature as FindInPageFeature).bind(tab) view.layoutParams.height = toolbar.height