Merge "Prevent long press nav handle invocation when quick switching between apps." into udc-qpr-dev

This commit is contained in:
Andreas Agvard
2023-08-19 09:16:13 +00:00
committed by Android (Google) Code Review

View File

@@ -914,7 +914,8 @@ public class TouchInteractionService extends Service {
base = new TaskbarUnstashInputConsumer(this, base, mInputMonitorCompat, tac,
mOverviewCommandHelper);
}
} else if (canStartSystemGesture && FeatureFlags.ENABLE_LONG_PRESS_NAV_HANDLE.get()) {
} else if (canStartSystemGesture && FeatureFlags.ENABLE_LONG_PRESS_NAV_HANDLE.get()
&& !previousGestureState.isRecentsAnimationRunning()) {
base = new NavHandleLongPressInputConsumer(this, base, mInputMonitorCompat);
}