Commit e11f1b62 authored by mcarare's avatar mcarare Committed by Emily Kager
Browse files

For #10027: Make toolbar context menu popup dismissible on SDK<23

parent c4e83367
......@@ -4,6 +4,8 @@
package org.mozilla.fenix.components.toolbar
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
......@@ -51,7 +53,7 @@ interface BrowserToolbarViewInteractor {
fun onBrowserMenuDismissed(lowPrioHighlightItems: List<ToolbarMenu.Item>)
fun onScrolled(offset: Int)
class BrowserToolbarView(
private val container: ViewGroup,
private val shouldUseBottomToolbar: Boolean,
......@@ -98,6 +100,10 @@ class BrowserToolbarView(
popupWindow.elevation =
// This is a workaround for SDK<23 to allow popup dismissal on outside or back button press
// See:
customView.paste.isVisible = !clipboard.text.isNullOrEmpty() && !isCustomTabSession
customView.paste_and_go.isVisible =
!clipboard.text.isNullOrEmpty() && !isCustomTabSession
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment