[fenix] Fix https://github.com/mozilla-mobile/fenix/issues/3122 - Hide the "Bookmark...
commitf92299351e4c0970045f4df5cd5bec645bd70bdb
authorMugurell <mugurell@users.noreply.github.com>
Fri, 18 Oct 2019 05:11:56 +0000 (18 08:11 +0300)
committerMugurell <mugurell@users.noreply.github.com>
Fri, 18 Oct 2019 05:11:56 +0000 (18 08:11 +0300)
tree0ba1ad1efce24e890345f729908ee02445ab91e6
parent39a39bde0c3331606d70f232d555ac3773f0a2f2
[fenix] Fix https://github.com/mozilla-mobile/fenix/issues/3122 - Hide the "Bookmark saved" Snackbar when user closes BrowserFragment

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.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt