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

Commit fd67cf88 authored by Tony Huang's avatar Tony Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix stage split rotation" into sc-v2-dev am: ab816e13

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15389271

Change-Id: I054c4436a40df929b6c1b77966628a4cb8a1a0a1
parents 629df5c3 ab816e13
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -780,10 +780,12 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> {
            }
            return SCREEN_ORIENTATION_UNSPECIFIED;
        } else {
            // Apps and their containers are not allowed to specify an orientation of full screen
            // tasks created by organizer. The organizer handles the orientation instead.
            final Task task = getTopRootTaskInWindowingMode(WINDOWING_MODE_FULLSCREEN);
            if (task != null && task.isVisible() && task.mCreatedByOrganizer) {
            // Apps and their containers are not allowed to specify an orientation of non floating
            // visible tasks created by organizer. The organizer handles the orientation instead.
            final Task nonFloatingTopTask =
                    getRootTask(t -> !t.getWindowConfiguration().tasksAreFloating());
            if (nonFloatingTopTask != null && nonFloatingTopTask.mCreatedByOrganizer
                    && nonFloatingTopTask.isVisible()) {
                return SCREEN_ORIENTATION_UNSPECIFIED;
            }
        }