mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user