mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Disable quickswitch for trackpad gestures
Bug: 261815244 Test: make sure (1) if user starts by swiping up, disable quickswitch (they will land either in overview, home, or the current app) (2) if user starts by quick switching, cancel the gesture Change-Id: I6b59cec0089d5e6f22eee3241c6336345dd15dce
This commit is contained in:
@@ -218,7 +218,8 @@ public class OverviewCommandHelper {
|
||||
InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH);
|
||||
}
|
||||
|
||||
GestureState gestureState = mService.createGestureState(GestureState.DEFAULT_STATE);
|
||||
GestureState gestureState = mService.createGestureState(GestureState.DEFAULT_STATE,
|
||||
false /* isTrackpadGesture */);
|
||||
gestureState.setHandlingAtomicEvent(true);
|
||||
AbsSwipeUpHandler interactionHandler = mService.getSwipeUpHandlerFactory()
|
||||
.newHandler(gestureState, cmd.createTime);
|
||||
|
||||
Reference in New Issue
Block a user