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:
parent
ffad962092
commit
035a516e18
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue