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

Commit 6bdefb5a authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not calculate rotated override bounds for organized tasks

The task organizers in WMShell already handle the rotation case.
E.g. LegacySplitScreenController, StageCoordinator.

Bug: 163976519
Test: CtsActivityManagerDeviceTestCases
Change-Id: Id9c07ef1fac233bf986f7267765e659d65d3f76c
parent 08774f2f
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -1990,14 +1990,7 @@ class Task extends TaskFragment {
            taskDisplayArea.onRootTaskWindowingModeChanged(this);
        }

        if (mDisplayContent == null) {
            return;
        }

        // Use override windowing mode to prevent extra bounds changes if inheriting the mode.
        final int overrideWindowingMode = getRequestedOverrideWindowingMode();
        if (overrideWindowingMode != WINDOWING_MODE_PINNED
                && !getRequestedOverrideBounds().isEmpty()) {
        if (!isOrganized() && !getRequestedOverrideBounds().isEmpty() && mDisplayContent != null) {
            // If the parent (display) has rotated, rotate our bounds to best-fit where their
            // bounds were on the pre-rotated display.
            final int newRotation = getWindowConfiguration().getRotation();