From 5db6d3dd8ec800f3c6921b3d13cdcc259307c174 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Tue, 13 Aug 2024 23:03:38 +0000 Subject: [PATCH] Detach the nav bar from the app when going home - Nothing currently detaches the nav bar from the app until the recents animation completes if onAnimationStart() happens after the end target is set Flag: EXEMPT bugfix Fixes: 343457097 Test: Artificially introduce delayed onRecentsAnimationStart and verify detachNavFromApp is called Change-Id: I1ec0d8821d61f9fad9a811d6a12ce21e8417252f --- .../android/quickstep/AbsSwipeUpHandler.java | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 540ab37b32..8f62ef6ba4 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -53,6 +53,7 @@ import static com.android.quickstep.GestureState.GestureEndTarget.RECENTS; import static com.android.quickstep.GestureState.STATE_END_TARGET_ANIMATION_FINISHED; import static com.android.quickstep.GestureState.STATE_END_TARGET_SET; import static com.android.quickstep.GestureState.STATE_RECENTS_ANIMATION_CANCELED; +import static com.android.quickstep.GestureState.STATE_RECENTS_ANIMATION_STARTED; import static com.android.quickstep.GestureState.STATE_RECENTS_SCROLLING_FINISHED; import static com.android.quickstep.MultiStateCallback.DEBUG_STATES; import static com.android.quickstep.util.ActiveGestureErrorDetector.GestureEvent.CANCEL_RECENTS_ANIMATION; @@ -468,6 +469,8 @@ public abstract class AbsSwipeUpHandler