From 51608c24bb7975c8bbece49e875f90aa165b00bd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ricau Date: Thu, 26 Feb 2026 17:13:14 +0100 Subject: [PATCH 1/2] Add changelog entry for ToastEventListener race condition fix Document the fix from #2802 in the Unreleased section. --- docs/changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index be1d86261..4f50541d4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -3,6 +3,10 @@ Please thank our [contributors](https://github.com/square/leakcanary/graphs/contributors) 🙏 🙏 🙏. +## Unreleased + +* 🔨 [#2802](https://github.com/square/leakcanary/pull/2802) Fix `ToastEventListener` race condition retaining a finished `Toast` in the static `toastCurrentlyShown` field + ## Version 3.0 Alpha 8 (2024-06-04) * Added support for proper hprof handling on heap growth detection failures. Also inlined some public collaborators to achieve that. We now have a single class that's a bit larger but also a lot more obvious. From e89fff6bef785e82aa02fecc0e007f0982ab8663 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ricau Date: Thu, 26 Feb 2026 17:51:14 +0100 Subject: [PATCH 2/2] Update changelog entry wording for ToastEventListener fix --- docs/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 4f50541d4..97849d6af 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -5,7 +5,7 @@ Please thank our [contributors](https://github.com/square/leakcanary/graphs/cont ## Unreleased -* 🔨 [#2802](https://github.com/square/leakcanary/pull/2802) Fix `ToastEventListener` race condition retaining a finished `Toast` in the static `toastCurrentlyShown` field +* 🔨 [#2802](https://github.com/square/leakcanary/pull/2802) Fix `ToastEventListener` race condition leak where LeakCanary's toast was leaking and triggering LeakCanary ## Version 3.0 Alpha 8 (2024-06-04)