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

Commit 5ec89fed authored by Mariia Sandrikova's avatar Mariia Sandrikova Committed by Android (Google) Code Review
Browse files

Merge "Limit fixed orientation letterbox to split screen and fullscreen on task level." into sc-dev

parents 8366cb9d 05252742
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -7008,12 +7008,16 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
            newParentConfiguration = mTmpConfig;
        }

        final int windowingMode = getWindowingMode();
        // Can't use resolvedConfig.windowConfiguration.getWindowingMode() because it can be
        // different from windowing mode of the task (PiP) during transition from fullscreen to PiP
        // and back which can cause visible issues (see b/184078928).
        final int parentWindowingMode =
                newParentConfiguration.windowConfiguration.getWindowingMode();
        // TODO(b/181207944): Consider removing the if condition and always run
        // resolveFixedOrientationConfiguration() since this should be applied for all cases.
        if (isSplitScreenWindowingMode(windowingMode)
                || windowingMode == WINDOWING_MODE_MULTI_WINDOW
                || windowingMode == WINDOWING_MODE_FULLSCREEN) {
        if (isSplitScreenWindowingMode(parentWindowingMode)
                || parentWindowingMode == WINDOWING_MODE_MULTI_WINDOW
                || parentWindowingMode == WINDOWING_MODE_FULLSCREEN) {
            resolveFixedOrientationConfiguration(newParentConfiguration);
        }