Clean up taskLaunch and taskLaunchCancel runnables more consistently

- Set both to null instead of just one or the other
- Clean up in TaskbarUIController#onDestroy instead of only in
  FallbackTaskbarUIController

Test: presubmit + leak detection
Flag: EXEMPT bug fix
Fixes: 411767825
Change-Id: I1571f126e2df01009777359eac1973976a8bb661
This commit is contained in:
Tony Wickham committed 2025-05-08 08:34:41 -07:00
1 parent 29b86863f2
commit c25acda96d
4 files changed
+7 -4

No files matched your search

@@ -1108,6 +1108,7 @@ public class TaskbarLauncherStateController {
RecentsView recentsView = mControllers.uiController.getRecentsView();
if (recentsView != null) {
recentsView.setTaskLaunchListener(null);
recentsView.setTaskLaunchCancelledRunnable(null);
}
if (mSkipNextRecentsAnimEnd && !canceled) {