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

This commit is contained in:
TreeHugger Robot
2020-04-22 23:39:11 +00:00
committed by Android (Google) Code Review
@@ -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);
}