Fix memory leak in TaskbarLauncherStateController

mIconAlphaForHome.setConsumer(null) in onDestroy()

Test: Run BinderTests#testSwitchToOverview locally
Bug: 206633573
Change-Id: I912cd66097b113ee84197f23a5862e333d7e63f2
This commit is contained in:
Tracy Zhou 2021-11-16 11:07:37 -08:00
parent d8a1b5c366
commit 1fdea66f16
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ import java.util.function.Supplier;
mIconAlignmentForGestureState.finishAnimation();
mIconAlignmentForLauncherState.finishAnimation();
mIconAlphaForHome.setConsumer(null);
mLauncher.getHotseat().setIconsAlpha(1f);
mLauncher.getStateManager().removeStateListener(mStateListener);
}