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

Commit c2b56ab6 authored by Tony Wickham's avatar Tony Wickham Committed by Automerger Merge Worker
Browse files

Stop computing scroll if handler is invalidated am: 3d051487

Change-Id: I097006aa14ed82069bfc3cf26a940049d68b95bf
parents 4cbe3f52 3d051487
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);
        }