From 3c848b0dee6079aa5a1a11c28d6ac559d2991108 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Thu, 28 Oct 2021 12:50:58 -0700 Subject: [PATCH] Reapply TaskViewSimulator in onApplyWindowInsets() Test: Long press on bottom of taskbar to stash without moving my finger, ensure underlying app draws all the way behind the stashed handle Fixes: 204165836 Change-Id: Ia1e138b9c369ac789e862ba760068f90bd64d312 --- quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 3ab73bbc5c..be78f330c3 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -673,6 +673,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; }