For #4155: Adds elevation to copy/paste menu
This commit is contained in:
parent
c8bc144114
commit
42b31f0088
|
@ -62,7 +62,7 @@ class BrowserToolbarView(
|
|||
true
|
||||
)
|
||||
|
||||
popupWindow.showAsDropDown(view, view.context.dimen(R.dimen.context_menu_x_offset), 0, Gravity.START)
|
||||
popupWindow.elevation = view.context.dimen(R.dimen.mozac_browser_menu_elevation).toFloat()
|
||||
|
||||
customView.paste.isVisible = clipboard.containsText() && !isCustomTabSession
|
||||
customView.paste_and_go.isVisible = clipboard.containsText() && !isCustomTabSession
|
||||
|
@ -82,6 +82,8 @@ class BrowserToolbarView(
|
|||
interactor.onBrowserToolbarPasteAndGo(clipboard.primaryClip?.getItemAt(0)?.text.toString())
|
||||
}
|
||||
|
||||
popupWindow.showAsDropDown(view, view.context.dimen(R.dimen.context_menu_x_offset), 0, Gravity.START)
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user