[fenix] For https://github.com/mozilla-mobile/fenix/issues/778: Follow-up to fix find in page

pull/600/head
Christian Sadilek 5 years ago
parent b36c9c67dd
commit c853454896

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

Loading…
Cancel
Save