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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24483110

Change-Id: I0996c639d301f253fad780a6396e71d3c5bf1e73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Andreas Agvard
2023-08-19 09:50:07 +00:00
committed by Automerger Merge Worker

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