From f3e9f870bd00bf7f6e6ec512f0f5b0f4a211d3db Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 30 Mar 2023 21:04:13 -0700 Subject: [PATCH] Fix task bar unstashing and stashing when triggering back gesture using the trackpad Need to defer starting recents animation. Instead of starting at touch down, will defer to passing initial slop. For the back gesture, launcher gesture nav will cancel the motion events from the input monitor passing the initial slop since it's not detected as a swipe up gesture. Fixes: 276390218 Test: 3-finger horizontal swipe to go back, and make sure the task bar stay stashed through the transition Change-Id: I03376c4d9696a9e5679b74e36ec142efa882981b --- .../src/com/android/quickstep/BaseActivityInterface.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/BaseActivityInterface.java b/quickstep/src/com/android/quickstep/BaseActivityInterface.java index ce41c60e89..fd7aa581b7 100644 --- a/quickstep/src/com/android/quickstep/BaseActivityInterface.java +++ b/quickstep/src/com/android/quickstep/BaseActivityInterface.java @@ -16,6 +16,7 @@ package com.android.quickstep; import static com.android.launcher3.LauncherAnimUtils.VIEW_BACKGROUND_COLOR; +import static com.android.launcher3.MotionEventsUtils.isTrackpadMultiFingerSwipe; import static com.android.launcher3.anim.Interpolators.ACCEL_2; import static com.android.launcher3.anim.Interpolators.INSTANT; import static com.android.launcher3.anim.Interpolators.LINEAR; @@ -187,7 +188,8 @@ public abstract class BaseActivityInterface