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

pull/600/head
mcarare 5 years ago committed by Emily Kager
parent 5de64fa395
commit ce60d6df58

@ -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()
}

Loading…
Cancel
Save