Skip to content

Commit

Permalink
Merge pull request #2328 from square/py/toast_listener_leak
Browse files Browse the repository at this point in the history
Fix toast event listener leak
  • Loading branch information
pyricau authored Apr 3, 2022
2 parents 1418a4a + ade42f7 commit 7617c39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ object ToastEventListener : EventListener {
is HeapDump, is HeapDumpFailed -> {
mainHandler.post {
toastCurrentlyShown?.cancel()
toastCurrentlyShown = null
}
}
}
Expand Down

0 comments on commit 7617c39

Please sign in to comment.