summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-09-30 23:13:55 (GMT)
committerHyunyoung Song <hyunyoungs@google.com>2016-09-30 23:13:55 (GMT)
commit035a516e182090b2cee11d11579df432b7fcf02a (patch)
treee2cb351bcceea2e707a42581d1a3c2f5b3c8514b
parentffad962092e2b42e336918c2f1e8f5ec48cc08a9 (diff)
downloadandroid_packages_apps_Trebuchet-035a516e182090b2cee11d11579df432b7fcf02a.zip
android_packages_apps_Trebuchet-035a516e182090b2cee11d11579df432b7fcf02a.tar.gz
android_packages_apps_Trebuchet-035a516e182090b2cee11d11579df432b7fcf02a.tar.bz2
Consume ACTION_UP when fling is detected on top of icon
Bug: Adam found out that when you swipe down fast on an icon, you can launch search AND launch an app. Only one should trigger and not both. Change-Id: I66b9df26d8bb355f011d057dafd45f90f59b82ae
-rw-r--r--src/com/android/launcher3/Workspace.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index ea5401e..fc35064 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -599,6 +599,7 @@ public class Workspace extends PagedView
if (shouldConsumeTouch(v)) return true;
if (super.onTouch(v, ev)) {
mLauncher.startSearch("", false, null, false);
+ return true;
}
return false;
}
@@ -610,6 +611,7 @@ public class Workspace extends PagedView
if (shouldConsumeTouch(v)) return true;
if (super.onTouch(v, ev)) {
mLauncher.startSearch("", false, null, false);
+ return true;
}
return false;
}