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

[fenix] For https://github.com/mozilla-mobile/fenix/issues/8899: Set viable anchor for snackbars in both custom and normal tab

This commit is contained in:
mcarare 2020-03-03 17:31:28 +02:00 committed by Emily Kager
parent 5de64fa395
commit ce60d6df58

View File

@ -102,7 +102,10 @@ class BrowserToolbarView(
clipboard.text = selectedSession?.url
}
FenixSnackbar.make(view, Snackbar.LENGTH_SHORT)
FenixSnackbar.makeWithToolbarPadding(
view.rootView.findViewById(android.R.id.content),
Snackbar.LENGTH_SHORT
)
.setText(view.context.getString(R.string.browser_toolbar_url_copied_to_clipboard_snackbar))
.show()
}