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

Commit 0ff07404 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow non-fullscreen activities to set requested orientation."

parents c8913dac e9a2ae61
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1953,11 +1953,6 @@ final class ActivityRecord implements AppWindowContainerListener {
    }

    void setRequestedOrientation(int requestedOrientation) {
        if (task != null && (!task.mFullscreen || !task.getStack().mFullscreen)) {
            // Fixed screen orientation isn't supported when activities aren't in full screen mode.
            return;
        }

        final int displayId = getDisplayId();
        final Configuration displayConfig =
                mStackSupervisor.getDisplayOverrideConfiguration(displayId);