2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Forhttps://github.com/mozilla-mobile/fenix/issues/5468 Changed info source for url clipboard copy from view to session (https://github.com/mozilla-mobile/fenix/pull/5514)

This commit is contained in:
Mihai Adrian 2019-09-24 17:56:59 +03:00 committed by Arturo Mejia
parent 809512f956
commit c2c758376b

View File

@ -62,6 +62,8 @@ class BrowserToolbarView(
true
)
val selectedSession = container.context.components.core.sessionManager.selectedSession
popupWindow.elevation = view.context.dimen(R.dimen.mozac_browser_menu_elevation).toFloat()
customView.paste.isVisible = !clipboard.text.isNullOrEmpty() && !isCustomTabSession
@ -69,7 +71,11 @@ class BrowserToolbarView(
customView.copy.setOnClickListener {
popupWindow.dismiss()
clipboard.text = view.url.toString()
if (isCustomTabSession) {
clipboard.text = customTabSession?.url
} else {
clipboard.text = selectedSession?.url
}
}
customView.paste.setOnClickListener {