Stop computing scroll if handler is invalidated am: 3d05148750 am: 97653b65c4 am: 54bf5eb1bc

Change-Id: I4e902d4c3ef1aca05b74e3ad24f188d572954aa3
This commit is contained in:
Tony Wickham authored and Automerger Merge Worker committed 2020-04-27 18:08:08 +00:00
commit 1d85d7161a
1 file changed
+2 -1
@@ -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);
}