From 8ae6b852d71d27e232f586c408de8dc458c58caf Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 22 Sep 2022 22:10:20 +0000 Subject: [PATCH] Revert "Fix case of gesture being stuck when the Launcher is stopped mid-gesture" This reverts commit 240b064cdb9df3914fe90a55ba94a5101bbd2b22. Reason for revert: b/248344141 Change-Id: I559e583ddea4a68b4291ceb8ba119500d051ed36 --- .../src/com/android/quickstep/AbsSwipeUpHandler.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 41c220b39b..81a5c1cb9d 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -1150,13 +1150,6 @@ public abstract class AbsSwipeUpHandler, boolean isCancel) { long duration = MAX_SWIPE_DURATION; float currentShift = mCurrentShift.value; - boolean recentsVisible = mRecentsView != null - && (mRecentsView.getWindowVisibility() == View.VISIBLE); - if (!recentsVisible) { - // We've hit a case where Launcher is been stopped mid-gesture, in this case, force - // a LAST_TASK end target - isCancel = true; - } final GestureEndTarget endTarget = calculateEndTarget(velocity, endVelocity, isFling, isCancel); // Set the state, but don't notify until the animation completes @@ -1236,7 +1229,7 @@ public abstract class AbsSwipeUpHandler, // Let RecentsView handle the scrolling to the task, which we launch in startNewTask() // or resumeLastTask(). - if (recentsVisible) { + if (mRecentsView != null) { ActiveGestureLog.INSTANCE.trackEvent(ActiveGestureErrorDetector.GestureEvent .SET_ON_PAGE_TRANSITION_END_CALLBACK); mRecentsView.setOnPageTransitionEndCallback(