Merge "Fix continueComputingRecentsScrollIfNecessary() running infinitely" into ub-launcher3-rvc-dev

This commit is contained in:
Tony Wickham
2020-05-05 17:14:03 +00:00
committed by Android (Google) Code Review
@@ -1081,9 +1081,10 @@ public class LauncherSwipeHandler<T extends BaseDraggingActivity>
private void continueComputingRecentsScrollIfNecessary() {
if (!mGestureState.hasState(STATE_RECENTS_SCROLLING_FINISHED)
&& !mStateCallback.hasStates(STATE_HANDLER_INVALIDATED)) {
&& !mStateCallback.hasStates(STATE_HANDLER_INVALIDATED)
&& !mCanceled) {
computeRecentsScrollIfInvisible();
mRecentsView.post(this::continueComputingRecentsScrollIfNecessary);
mRecentsView.postOnAnimation(this::continueComputingRecentsScrollIfNecessary);
}
}