summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2019-01-29 10:52:31 -0800
committerTony Wickham <twickham@google.com>2019-01-29 17:11:12 -0800
commit023f404a12245904aec96fb9158edfca51e45434 (patch)
tree99012869e2217d1d04acd93ce868d7183de1084b /src
parenteefa08b8be3d146d2fbb972a7e77d5b57ec83100 (diff)
downloadandroid_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 'src')
-rw-r--r--src/com/android/launcher3/PagedView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java
index 8f9e7c821..018ec5f17 100644
--- a/src/com/android/launcher3/PagedView.java
+++ b/src/com/android/launcher3/PagedView.java
@@ -1053,7 +1053,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
}
- protected void setEnableFreeScroll(boolean freeScroll) {
+ public void setEnableFreeScroll(boolean freeScroll) {
boolean wasFreeScroll = mFreeScroll;
mFreeScroll = freeScroll;