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

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

Change-Id: Ib437340feadb5923c0ccc5748d14bfdac60a4e1d
This commit is contained in:
Sergey Volnov
2021-07-23 13:54:46 +00:00
committed by Automerger Merge Worker

View File

@@ -780,12 +780,10 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> {
}
return SCREEN_ORIENTATION_UNSPECIFIED;
} else {
// 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()) {
// 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) {
return SCREEN_ORIENTATION_UNSPECIFIED;
}
}