Merge "Reapply TaskViewSimulator in onApplyWindowInsets()" into sc-v2-dev am: c29f5441da

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

Change-Id: If6ee9defe28dd7c9cb00bebc724bcc1ed8512f34
This commit is contained in:
Tony Wickham
2021-11-01 20:21:09 +00:00
committed by Automerger Merge Worker
@@ -677,6 +677,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
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;
}