OSDN Git Service

Consume ACTION_UP when fling is detected on top of icon
authorHyunyoung Song <hyunyoungs@google.com>
Fri, 30 Sep 2016 23:13:55 +0000 (16:13 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Fri, 30 Sep 2016 23:13:55 +0000 (16:13 -0700)
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

src/com/android/launcher3/Workspace.java

index ea5401e..fc35064 100644 (file)
@@ -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;
                 }