Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adbbc2f7 authored by Alex Chau's avatar Alex Chau
Browse files

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
parent 618df8b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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(