commit | 4318324ab4dfd583f97f5f93448cfd02df4fdeda | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Wed Sep 09 17:12:49 2020 -0700 |
committer | Tony Wickham <twickham@google.com> | Wed Sep 09 17:12:49 2020 -0700 |
tree | e2bc044e894f777666ac87ab8d93bad3d8ccfc7e | |
parent | 1aee9da5b8e1ce24078a8e990f23ab07e9d5bb81 [diff] |
Allow pause during quick switch for any horizontal displacement The shelf no longer exists in 0 button mode, so it's not necessary to wait for workspace to be invisible before allowing the pause. Change-Id: I202ed9991b18f5e7cb2e4f0aa6be7a0d66b8ffd7
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java index 4b0642f..8285850 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java
@@ -271,11 +271,7 @@ mIsHomeScreenVisible = FADE_OUT_INTERPOLATOR.getInterpolation(xProgress) <= 1 - ALPHA_CUTOFF_THRESHOLD; - - // Only allow motion pause if the home screen is invisible, since some - // home screen elements will appear in the shelf on motion pause. - mMotionPauseDetector.setDisallowPause(mIsHomeScreenVisible - || -displacement.y < mMotionPauseMinDisplacement); + mMotionPauseDetector.setDisallowPause(-displacement.y < mMotionPauseMinDisplacement); mMotionPauseDetector.addPosition(ev); if (mXOverviewAnim != null) {