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

Commit 9df3f0ce authored by Tony Wickham's avatar Tony Wickham
Browse files

Stop computing scroll if handler is invalidated

Bug: 153589287
Change-Id: I0282ec82fe4ae1f74a0f4342471ffd53f43095d7
parent 674e38fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1076,7 +1076,8 @@ public class LauncherSwipeHandler<T extends BaseDraggingActivity>
    }

    private void continueComputingRecentsScrollIfNecessary() {
        if (!mGestureState.hasState(STATE_RECENTS_SCROLLING_FINISHED)) {
        if (!mGestureState.hasState(STATE_RECENTS_SCROLLING_FINISHED)
                && !mStateCallback.hasStates(STATE_HANDLER_INVALIDATED)) {
            computeRecentsScrollIfInvisible();
            mRecentsView.post(this::continueComputingRecentsScrollIfNecessary);
        }