Skip to content

Commit

Permalink
For mozilla-mobile#778: Follow-up to fix find in page
Browse files Browse the repository at this point in the history
  • Loading branch information
csadilek committed Oct 9, 2019
1 parent f9afd97 commit 325fe78
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 325fe78

Please sign in to comment.