Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ae6b852 authored by Winson Chung's avatar Winson Chung
Browse files

Revert "Fix case of gesture being stuck when the Launcher is stopped mid-gesture"

This reverts commit 240b064c.

Reason for revert: b/248344141

Change-Id: I559e583ddea4a68b4291ceb8ba119500d051ed36
parent 240b064c
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -1150,13 +1150,6 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
            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<T extends StatefulActivity<S>,

        // 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(