From 615cf6c43120e1e6fc08d2886b7099c17d0f0ae6 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 13 Oct 2021 14:12:43 -0700 Subject: [PATCH] Fix launching window bounds for immersive apps Test: Open an immersive app (e.g. fullscreen YT video), ensure it fills the screen; open a non-immersive app (e.g. Calculator), ensure it only fills up to the top of the taskbar. Fixes: 200036592 Change-Id: Id815bbc8140cbaf1e61ac587ae1f1325e7ec5b72 --- .../src/com/android/launcher3/QuickstepTransitionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index ddb20a1a37..8a05533941 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -439,9 +439,9 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener 4 - rotationChange); } } - // TODO(b/196637509): don't do this for immersive apps. if (mDeviceProfile.isTaskbarPresentInApps) { - bounds.bottom -= mDeviceProfile.taskbarSize; + // Animate to above the taskbar. + bounds.bottom -= target.contentInsets.bottom; } return bounds; }