mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Fix BaseSwipeDetector#setState() called inside another setState()" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
2abd13a80b
@@ -508,7 +508,7 @@ public abstract class AbstractStateChangeTouchController
|
||||
mAtomicComponentsController.getAnimationPlayer().end();
|
||||
mAtomicComponentsController = null;
|
||||
}
|
||||
cancelAnimationControllers();
|
||||
clearState();
|
||||
boolean shouldGoToTargetState = true;
|
||||
if (mPendingAnimation != null) {
|
||||
boolean reachedTarget = mToState == targetState;
|
||||
@@ -546,13 +546,13 @@ public abstract class AbstractStateChangeTouchController
|
||||
mAtomicAnim = null;
|
||||
}
|
||||
mScheduleResumeAtomicComponent = false;
|
||||
mDetector.finishedScrolling();
|
||||
mDetector.setDetectableScrollConditions(0, false);
|
||||
}
|
||||
|
||||
private void cancelAnimationControllers() {
|
||||
mCurrentAnimation = null;
|
||||
cancelAtomicComponentsController();
|
||||
mDetector.finishedScrolling();
|
||||
mDetector.setDetectableScrollConditions(0, false);
|
||||
}
|
||||
|
||||
private void cancelAtomicComponentsController() {
|
||||
|
||||
Reference in New Issue
Block a user