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

Commit cea3ed48 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Stop computing scroll if handler is invalidated" into ub-launcher3-rvc-dev

parents 2309597c 9df3f0ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,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);
        }