From f7e20960e09fdcd3559775cb535cbbe43a3d03d5 Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Thu, 2 Nov 2023 15:14:22 -0400 Subject: [PATCH] Fix unresponsive swipe up after launching the running app from live tile overview Flag: NONE Fixes: 245736607 Test: quickly swipe to home after tapping the currently-running task in live tile mode from overview Change-Id: I3b47ee3645db88bf20e58e673abde7a3b92cef9b --- quickstep/src/com/android/quickstep/TaskViewUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TaskViewUtils.java b/quickstep/src/com/android/quickstep/TaskViewUtils.java index 662a89506b..3d8191da6c 100644 --- a/quickstep/src/com/android/quickstep/TaskViewUtils.java +++ b/quickstep/src/com/android/quickstep/TaskViewUtils.java @@ -693,15 +693,17 @@ public final class TaskViewUtils { launcherAnim.setInterpolator(Interpolators.TOUCH_RESPONSE); launcherAnim.setDuration(RECENTS_LAUNCH_DURATION); - windowAnimEndListener = new AnimatorListenerAdapter() { + windowAnimEndListener = new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { recentsView.onTaskLaunchedInLiveTileMode(); } // Make sure recents gets fixed up by resetting task alphas and scales, etc. + // This should only be run onAnimationSuccess, otherwise finishRecentsAnimation will + // interfere with a rapid swipe up to home in the live tile + running task case. @Override - public void onAnimationEnd(Animator animation) { + public void onAnimationSuccess(Animator animation) { recentsView.finishRecentsAnimation(false /* toRecents */, () -> { recentsView.post(() -> { stateManager.moveToRestState();