summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorNick Chameyev <nickchameyev@google.com>2021-12-09 19:00:18 +0000
committerNick Chameyev <nickchameyev@google.com>2021-12-16 11:54:37 +0000
commite59d85ae82eaf8a558e3f974954545e663bc439a (patch)
tree35116623bbdad9668198717003e27dae1c5c04e5 /core/java/android/widget/TextView.java
parentf4039ba230d1ca66c8045d826bba9cf6126a37a3 (diff)
Update display size before updating 'ignore orientation request'
When folding/unfolding a foldable device 'ignore orientation request' flag might be updated in DisplayContent because different displays might have different properties. This might result into updated display rotation. This flag is updated in 'applySettingsToDisplayLocked' and the new rotation might be applied in the same method. But DisplayRotation is not updated with the new display size when applySettingsToDisplayLocked is invoked. This caused calculation of incorrect rotation (using old display dimensions). Fixed by updating display rotation settings only after updating the size of the display. Fixes: 203844967 Test: open portrait only app on the unfolded screen, fold the device => app is still in portrait orientation Test: open rotatable app on the unfolded screen, fold the device => app is in portrait orientation Test: rotate screen on inner/outer screen of a foldable device Change-Id: Ie408ebe7e5913b4a1f97d46581d693e56efaf46c
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions