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

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

Separate natural display orientation for configuration

The usages of getNaturalOrientation in DisplayRotationCompatPolicy
assumes that the orientation is based on the logical display size
without considering insets.

For example,
Logical display size 2076x2152=portrait

If the navigation bar occupies height 146.
Then the available size for app is 2076x2006=landscape

Fix: 323224894
Test: atest DisplayContentTests#testOrientationForAspectRatio

Change-Id: I31f0660fa15b756020f7e2f3f675e50a35b86869
parent a9d2c1f1
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