diff options
author | Tony Wickham <twickham@google.com> | 2019-01-29 10:52:31 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2019-01-29 17:11:12 -0800 |
commit | 023f404a12245904aec96fb9158edfca51e45434 (patch) | |
tree | 99012869e2217d1d04acd93ce868d7183de1084b /quickstep/res | |
parent | eefa08b8be3d146d2fbb972a7e77d5b57ec83100 (diff) | |
download | android_packages_apps_Trebuchet-023f404a12245904aec96fb9158edfca51e45434.tar.gz android_packages_apps_Trebuchet-023f404a12245904aec96fb9158edfca51e45434.tar.bz2 android_packages_apps_Trebuchet-023f404a12245904aec96fb9158edfca51e45434.zip |
Make quick switch ("hook") more reliable
- Add max orthogonal displacement to MotionPauseDetector to avoid
pausing when swiping left or right
- When gesture in ambiguous between swipe up for home or swipe over
for the new task, base the decision on the faster velocity component
- Disable recents freescroll mode when dispatching motion from the nav
bar. This way recents handles it naturally and we don't need custom
logic to snap to the next page at the end of the gesture.
- Fix a bug where you couldn't hook to start a new task when SWIPE_HOME
was disabled
Bug: 111926330
Change-Id: If63aa2bb32b57c3f401c5df8b3f6f4efec97b1fa
Diffstat (limited to 'quickstep/res')
-rw-r--r-- | quickstep/res/values/dimens.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 04fd59ce0..2626481c3 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -39,6 +39,7 @@ <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_max_orthogonal_displacement">48dp</dimen> <!-- Launcher app transition --> <dimen name="content_trans_y">50dp</dimen> |