DescriptionFix a snackbar crash about leaking window
Sometimes the DownloadService will call showSnackbars() even when the activity
is not visible. To track the activity's visibility, SnackbarManager now needs
to know some activity's lifecycle signals. After this CL, all activities
managing snackbars should call onStart and onStop of the SnackbarManager.
BUG=553569
TBR=newt@chromium.org
Review URL: https://codereview.chromium.org/1518373002
Cr-Commit-Position: refs/heads/master@{#365751}
Committed: https://chromium.googlesource.com/chromium/src/+/b006defc621c8cd2f168e2c29237c2c7daa014f6
Patch Set 1 #
Messages
Total messages: 3 (2 generated)
|