Fix toast event listener leak

Fixes #2301
This commit is contained in:
Pierre-Yves Ricau
2022-04-03 05:57:06 -07:00
parent 2447b51bb2
commit ade42f7929

View File

@@ -29,6 +29,7 @@ object ToastEventListener : EventListener {
is HeapDump, is HeapDumpFailed -> {
mainHandler.post {
toastCurrentlyShown?.cancel()
toastCurrentlyShown = null
}
}
}