summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-02-02 21:43:52 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-02-03 00:37:46 +0800
commit4d4ab9fb7c2aff1e3e113d996f87c44438adc196 (patch)
treead599563f49151ec0f19e9543bc2e3c234e4917e /libs/androidfw/AttributeResolution.cpp
parenta9d2c1f17c2c128231df3d0aa771b55f697d3f61 (diff)
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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions