summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PagedView.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2018-02-27 17:19:34 +0000
committerTony Mak <tonymak@google.com>2018-02-27 17:29:12 +0000
commit2e564400ba6282a8fd12d20f4f8749c7c4e98853 (patch)
tree6eb3881b2ecdb6cea28719aa1bbda4ce2fb725ad /src/com/android/launcher3/PagedView.java
parent7eadfc4f150ed6fd3877249847740624ab671031 (diff)
downloadandroid_packages_apps_Trebuchet-2e564400ba6282a8fd12d20f4f8749c7c4e98853.tar.gz
android_packages_apps_Trebuchet-2e564400ba6282a8fd12d20f4f8749c7c4e98853.tar.bz2
android_packages_apps_Trebuchet-2e564400ba6282a8fd12d20f4f8749c7c4e98853.zip
Fix all apps tab fling detection
It is a regression when we changed from ViewPager to PagedView. Unlike ViewPager, PagedView does not take "yDiff" into account when determining should it intercept its child MotionEvent. Override determineScrollingStart, just like what we did in Workspace Change-Id: I25f7415c45c370629558d944f59bf95c741b9319 FIX: 73878167
Diffstat (limited to 'src/com/android/launcher3/PagedView.java')
-rw-r--r--src/com/android/launcher3/PagedView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java
index ccb0a955d..4be32b207 100644
--- a/src/com/android/launcher3/PagedView.java
+++ b/src/com/android/launcher3/PagedView.java
@@ -1892,6 +1892,14 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
getNextPage() + 1, getChildCount());
}
+ protected float getDownMotionX() {
+ return mDownMotionX;
+ }
+
+ protected float getDownMotionY() {
+ return mDownMotionY;
+ }
+
@Override
public boolean onHoverEvent(android.view.MotionEvent event) {
return true;