diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java index 87662e6c1a..c54330765e 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java @@ -944,10 +944,14 @@ public class TaskbarActivityContext extends BaseTaskbarContext { } if (landscapePhoneButtonNav) { mWindowLayoutParams.width = size; - mWindowLayoutParams.paramsForRotation[getDisplay().getRotation()].width = size; + for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) { + mWindowLayoutParams.paramsForRotation[rot].width = size; + } } else { mWindowLayoutParams.height = size; - mWindowLayoutParams.paramsForRotation[getDisplay().getRotation()].height = size; + for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) { + mWindowLayoutParams.paramsForRotation[rot].height = size; + } } mControllers.taskbarInsetsController.onTaskbarOrBubblebarWindowHeightOrInsetsChanged(); notifyUpdateLayoutParams();