💥 Fix crash when removing persistent Snackbar.
When calling SnackbarManager#dismissSnackbars with a persistent snackbar, you get an IllegalStateException from Iterator#remove. This is because we attempt to remove the persistent Snackbar from the list of non-persistent Snackbars. This CL splits out the logic so we iterate through the persistent and non-persistent Snackbar deques separately. Bug: none Change-Id: I620ba14fd1eaa75ab5ba6a34870655218bd3fd22 Reviewed-on: https://chromium-review.googlesource.com/1179672 Commit-Queue: Peter Conn <peconn@chromium.org> Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Cr-Commit-Position: refs/heads/master@{#584074}
Showing
Please register or sign in to comment