Launcher3: Clear task snapshots remnants on 'onRecentsAnimationComplete'
- to avoid remnants on gesture start/swipe up Change-Id: Ife5f05263e07afec2456c535734f6c12e7080c9c
This commit is contained in:
parent
b1c71f95ab
commit
13f507a758
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue