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:
Tracy Zhou
2022-12-07 23:58:35 -08:00
parent 4bfef12fdd
commit 6692653328
5 changed files with 43 additions and 10 deletions

View File

@@ -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);