Launcher3: Clear task snapshots remnants on 'onRecentsAnimationComplete'

- to avoid remnants on gesture start/swipe up

Change-Id: Ife5f05263e07afec2456c535734f6c12e7080c9c
This commit is contained in:
hydrangea07 2022-11-23 23:03:33 +08:00 committed by fazilsheik96
parent b1c71f95ab
commit 13f507a758
1 changed files with 3 additions and 2 deletions

View File

@ -508,7 +508,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
mRecentsView.onRecentsAnimationComplete();
if (mRecentsAnimationController != null) {
mRecentsAnimationController.cleanupScreenshot();
} else if (mDeferredCleanupRecentsAnimationController != null) {
mRecentsAnimationController = null;
}
if (mDeferredCleanupRecentsAnimationController != null) {
mDeferredCleanupRecentsAnimationController.cleanupScreenshot();
mDeferredCleanupRecentsAnimationController = null;
}
@ -2140,7 +2142,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
@Override
public void onRecentsAnimationFinished(RecentsAnimationController controller) {
mRecentsAnimationController = null;
mRecentsAnimationTargets = null;
if (mRecentsView != null) {
mRecentsView.setRecentsAnimationTargets(null, null);