-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] (regression) "tab closed" snackbar no longer disappears #7799
Comments
I'm also seeing this. |
@mcomella could we make the root of |
@ekager Thanks for looping me in. I'm not sure that will work because the fragment container relies on the Is the |
I tried making the anchorView the root container of the activity, rather than Also, we may reintroduce the CoordinatorLayout in #7700 so it's possible this will be fixed with that patch. |
In the old implementation, the Snackbar would be dismissed when switching between fragments. In the current implementation, the Snackbar remains. I'm not sure why this would be the case. It's possible the previous
|
I noticed that |
I confirmed the problem is fixed when I make the "suitable parent" of the SnackBar as do {
if (view is ViewGroup && view.id == R.id.homeLayout) {
return view
}
if (view is CoordinatorLayout) {
// ... I'm not sure what the "correct" solution is though. |
Handing this off to @emalysz, who worked on the original implementation with me. |
Should be fixed once #7878 lands |
Simply pressing the "undo" button also removes the snackbar (it does not execute the undo action). ;-) |
Reproducing on Beta 3.2.0 |
Steps to reproduce
Expected behavior
The snackbar disappears.
Actual behavior
The snackbar stays visible. Pressing the "undo" link closes the snackbar (but does not execute the "undo" action).
This is a recent regression.
Device information
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: