Merge #6107
6107: Fix #3122 - Hide the "Bookmark saved" Snackbar when user closes BrowserFragment r=boek a=Mugurell Previously the Snackbar was being inflated in the parent of this Fragment so surviving it being closed. Tying the Snackbar with the Fragment from which it is shown ensures it will be effectively hidden whenever the user navigates from the Fragment. Co-authored-by: Mugurell <mugurell@users.noreply.github.com>
This commit is contained in:
commit
a5755d131f
|
@ -295,8 +295,8 @@ class BrowserFragment : BaseBrowserFragment(), BackHandler {
|
|||
)
|
||||
requireComponents.analytics.metrics.track(Event.AddBookmark)
|
||||
|
||||
view?.let {
|
||||
FenixSnackbar.make(it.rootView, Snackbar.LENGTH_LONG)
|
||||
view?.let { view ->
|
||||
FenixSnackbar.make(view, Snackbar.LENGTH_LONG)
|
||||
.setAnchorView(browserToolbarView.view)
|
||||
.setAction(getString(R.string.edit_bookmark_snackbar_action)) {
|
||||
nav(
|
||||
|
|
Loading…
Reference in New Issue
Block a user