From 7552bacb32e3de7835a1267dc7a9904b0b203eb7 Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Wed, 9 Oct 2019 16:05:12 -0400 Subject: [PATCH] For #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 859ab2bc9..e8b8385ba 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