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
This commit is contained in:
Hyunyoung Song 2016-09-30 16:13:55 -07:00
parent ffad962092
commit 035a516e18
1 changed files with 2 additions and 0 deletions

View 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;
}