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

Skip to content
Commit daf8921d authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Make default orientation of window container unset

The UNSPECIFIED is also a kind of provided orientation. If a
window container doesn't provide orientation, it should return
UNSET instead. As the implementation getOrientation of various
container, e.g. ActivityRecord, TaskFragment, DisplayArea, which
return UNSET if it can not decide the orientation. And the
UNSET will be reported as UNSPECIFIED in DisplayContent.

This could speed up a bit when traversing WindowContainer#
getOrientation that skips UNSET directly.

Bug: 163976519
Test: testGetOrientation_childSpecified
Change-Id: Iec067673e48dab559f5976f15d3e6524e0657b44
parent b9406495
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