Use the orientation from the top fullscreen window.
Previously we explicitly ignore orientation from all windows when any freeform stack is visible. That may lead to stretched content in the topmost fullscreen application on phone's primary display. Therefore we allow the topmost fullscreen window specify display rotation even when some freeform windows are visible. This CL may lead to unexpected display rotations on external displays connected to phones with freeform window management support. They need to explicitly set fixed to user rotation if they want to fix rotations on external displays. Therefore we should expose that through hidden API to SysUI as well. Bug: 144185986 Test: Display rotation can be set by the topmost fullscreen window. Test: atest DisplayContentTest#testAllowsTopmostFullscreenOrientation Change-Id: Idbe3daa7500c603c19232d01fb42f1d1f60d9c5e
Loading
Please register or sign in to comment