summaryrefslogtreecommitdiffstats
path: root/quickstep/res/values
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-04-22 20:26:12 -0700
committerTony Wickham <twickham@google.com>2019-04-24 16:10:40 -0700
commitbbea105be05649a00b4cc227d08a4da1ed87bb89 (patch)
tree87ea934498723276a82733e9b0cf8ebc77b347bb /quickstep/res/values
parentb0c81fc031162d163922f7cdcbf2cbcf3de958b5 (diff)
downloadandroid_packages_apps_Trebuchet-bbea105be05649a00b4cc227d08a4da1ed87bb89.tar.gz
android_packages_apps_Trebuchet-bbea105be05649a00b4cc227d08a4da1ed87bb89.tar.bz2
android_packages_apps_Trebuchet-bbea105be05649a00b4cc227d08a4da1ed87bb89.zip
Move logic that overrides MotionPauseDetector to callers
There are 2 conditions that we force the MotionPauseDetector to treat the motion as not paused: 1. If we haven't passed a small displacement (48dp before, 36dp now) 2. If we have moved mostly orthogonally These existed soley for the OtherActivityInputConsumer case, because 1. We only need the displacement requirement to make room for the peeking shelf, which doesn't exist in other cases (it's already there on home for example) 2. We can only move orthogonally for quick switch, which again doesn't exist for other users of MotionPauseDetector. So now instead of checking min displacement and orthogonal distance inside MotionPauseDetector, we let callers setDisallowPause() before adding positions to their MotionPauseDetector. The only user visible change is that you no longer have to swipe up 48dp before we allow pause to overview from home. This also paves the way to using the same logic that determines to disallowPause to also detach recents from the window while swiping up from an app. Bug: 129985827 Change-Id: Ie690aa314da3260aff2209341a29638604f9501c
Diffstat (limited to 'quickstep/res/values')
-rw-r--r--quickstep/res/values/dimens.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml
index 13a0435c1..32f312fdb 100644
--- a/quickstep/res/values/dimens.xml
+++ b/quickstep/res/values/dimens.xml
@@ -38,7 +38,7 @@
<dimen name="motion_pause_detector_speed_very_slow">0.0285dp</dimen>
<dimen name="motion_pause_detector_speed_somewhat_fast">0.285dp</dimen>
<dimen name="motion_pause_detector_speed_fast">0.5dp</dimen>
- <dimen name="motion_pause_detector_min_displacement">48dp</dimen>
+ <dimen name="motion_pause_detector_min_displacement_from_app">36dp</dimen>
<!-- Launcher app transition -->
<dimen name="content_trans_y">50dp</dimen>