Skip to content
Commit 98eead33 authored by Garfield Tan's avatar Garfield Tan
Browse files

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
parent 8b09990e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment