From adbbc2f7fa3b7c28c3813d4fc40a6b11966dd093 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Thu, 15 Dec 2022 22:04:16 +0000 Subject: [PATCH] TaskbarViewController should only translate on rotation if icon is aligned with hotseat Fix: 254191175 Test: With 3 button, rotate at home and overview, nav button are at expected position. Repeat with TASKBAR_IN_OVERVIEW flag off. Change-Id: I1e629e6be92c4793d3dfdb0dac60c3bfce886e7a --- .../com/android/launcher3/taskbar/TaskbarViewController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java index b58b6b5273..168c353273 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -428,8 +428,8 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar } public void onRotationChanged(DeviceProfile deviceProfile) { - if (mControllers.taskbarStashController.isInApp()) { - // We only translate on rotation when on home + if (!mControllers.uiController.isIconAlignedWithHotseat()) { + // We only translate on rotation when icon is aligned with hotseat return; } mActivity.setTaskbarWindowHeight(