Stop computing scroll if handler is invalidated
Bug: 153589287
Change-Id: I0282ec82fe4ae1f74a0f4342471ffd53f43095d7
(cherry picked from commit 9df3f0cebf)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user