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

This commit is contained in:
Andreas Agvard authored and Android (Google) Code Review committed 2023-08-19 09:16:13 +00:00
commit 31689cad69
1 file changed
+2 -1
@@ -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);
}