diff options
author | LibXZR <i@xzr.moe> | 2022-04-30 09:50:39 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-06 14:30:30 +0800 |
commit | 97cd71cae82ce09a411a848a1f61a3eaf83f84dd (patch) | |
tree | 6198e68b15611ba1d1e79dacb6512a6073bfbccb | |
parent | f2e547b4571e457ca8d3841dea20c4f3ca5d0f96 (diff) |
AbsSwipeUpHandler: Do not attach cleanupScreenshot() to frame update event
When the animation is cancelled, cleanupScreenshot()
should be called immediately to remove pending animations.
This fixes random gesture freeze on Sv2.
Change-Id: I10247294a2dcae467706c434685b299f8b525888
Signed-off-by: LibXZR <i@xzr.moe>
-rw-r--r-- | quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 9f1e47f15a..d170f75b9a 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -424,12 +424,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>, HashMap<Integer, ThumbnailData> snapshots = mGestureState.consumeRecentsAnimationCanceledSnapshot(); if (snapshots != null) { - mRecentsView.switchToScreenshot(snapshots, () -> { - if (mRecentsAnimationController != null) { - mRecentsAnimationController.cleanupScreenshot(); - } - }); mRecentsView.onRecentsAnimationComplete(); + if (mRecentsAnimationController != null) { + mRecentsAnimationController.cleanupScreenshot(); + } } }); |