diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 06f3288941..30a0fdf80a 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -677,6 +677,9 @@ public abstract class AbsSwipeUpHandler, public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) { WindowInsets result = view.onApplyWindowInsets(windowInsets); buildAnimationController(); + // Reapply the current shift to ensure it takes new insets into account, e.g. when long + // pressing to stash taskbar without moving the finger. + updateFinalShift(); return result; }