Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c83ee2ae authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[Launcher Memory Leak] Fix leak of AbsSwipeUpHandler via Launcher#mOnDeferredActivityLaunchCallback

Heap dump shows that we keep AbsSwipeUpHandler in memory via Launcher#onDeferredActivityLaunchCallback after swipe up gesture or qucik switch gesture is completed.

Fix: 380860147
Flag: NONE - release code
Test: presubmit
Change-Id: I40da887aedf6ed040b4262fcd6a918f885968e1f
parent 721d6c96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2085,6 +2085,7 @@ public abstract class AbsSwipeUpHandler<
        if (mRecentsView != null) {
            mRecentsView.removeOnScrollChangedListener(mOnRecentsScrollListener);
        }
        mGestureState.getContainerInterface().setOnDeferredActivityLaunchCallback(null);
    }

    private void resetStateForAnimationCancel() {