From c853454896169c138315a2471dff601797f1bec9 Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Wed, 9 Oct 2019 16:05:12 -0400 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/778: Follow-up to fix find in page --- .../org/mozilla/fenix/components/FindInPageIntegration.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 859ab2bc96..e8b8385ba5 100644 --- a/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt +++ b/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt @@ -33,7 +33,9 @@ class FindInPageIntegration( override fun onLaunch(view: View, feature: LifecycleAwareFeature) { store.state.findCustomTabOrSelectedTab(sessionId)?.let { tab -> - if (tab is CustomTabSessionState) { + 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 } view.visibility = View.VISIBLE