From 1fdea66f16c1a60b597ae75febf2b27752a02447 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 16 Nov 2021 11:07:37 -0800 Subject: [PATCH] Fix memory leak in TaskbarLauncherStateController mIconAlphaForHome.setConsumer(null) in onDestroy() Test: Run BinderTests#testSwitchToOverview locally Bug: 206633573 Change-Id: I912cd66097b113ee84197f23a5862e333d7e63f2 --- .../launcher3/taskbar/TaskbarLauncherStateController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java index 2693bc343d..152b25538f 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java @@ -115,6 +115,7 @@ import java.util.function.Supplier; mIconAlignmentForGestureState.finishAnimation(); mIconAlignmentForLauncherState.finishAnimation(); + mIconAlphaForHome.setConsumer(null); mLauncher.getHotseat().setIconsAlpha(1f); mLauncher.getStateManager().removeStateListener(mStateListener); }