mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Merge "Clear MotionPauseDetector onRecentsAnimationCanceled()" into tm-dev
This commit is contained in:
@@ -425,12 +425,18 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
mMainThreadHandler.removeCallbacks(mCancelRecentsAnimationRunnable);
|
||||
mMainThreadHandler.postDelayed(mCancelRecentsAnimationRunnable, 100);
|
||||
}
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
mMotionPauseDetector.clear();
|
||||
cleanupAfterGesture();
|
||||
TraceHelper.INSTANCE.endSection(traceToken);
|
||||
}
|
||||
|
||||
private void cleanupAfterGesture() {
|
||||
if (mVelocityTracker != null) {
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
}
|
||||
mMotionPauseDetector.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void notifyOrientationSetup() {
|
||||
mRotationTouchHelper.onStartGesture();
|
||||
@@ -453,6 +459,7 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
Preconditions.assertUIThread();
|
||||
removeListener();
|
||||
mInteractionHandler = null;
|
||||
cleanupAfterGesture();
|
||||
mOnCompleteCallback.accept(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user