From 30f891b014f4ce0f94f2afcad57e276b28fcc6b7 Mon Sep 17 00:00:00 2001 From: Ming-Shin Lu Date: Tue, 19 Jul 2022 01:38:54 +0800 Subject: [PATCH] Don't crop task with RemoteAnimaionTarget#contentInsets ..when willShowImeOnTarget is true, in case the task surface cropped by the task bar insets since the task bar will end up stashed by IME visible. Bug: 219981732 Test: manual as steps 0) enable taskbar with Settings > Developer options > Smallest width as 600dp. 1) launch an app from all apps and show the IME by tapping the editor. 2) swipe out to home and launch it again by pressing the shortcut. 3) Verify the animating task preview with IME shown without being cropped. Change-Id: I8d802887bd382a7d6f6429e269501c924e81c51b --- .../src/com/android/launcher3/QuickstepTransitionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index bb79c1ba10..c08eae3d1f 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -446,7 +446,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener 4 - rotationChange); } } - if (mDeviceProfile.isTaskbarPresentInApps) { + if (mDeviceProfile.isTaskbarPresentInApps && !target.willShowImeOnTarget) { // Animate to above the taskbar. bounds.bottom -= target.contentInsets.bottom; }