diff options
author | Tetsutoki Shiozawa <tetsutoki.shiozawa@sony.com> | 2019-05-07 18:27:25 +0900 |
---|---|---|
committer | Garfield Tan <xutan@google.com> | 2019-10-01 13:20:49 -0700 |
commit | 3e595fe8d4020e03012d4666a990bc3898bd9e93 (patch) | |
tree | d9f8f574e1195689e0a1cadc4aadb540915acafb /tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java | |
parent | 22562664e9cc1114a1918fd939dca8a97103f144 (diff) |
Distinguish between landscape and seascape
Symptom:
android:screenOrientation="landscape" does not work. The activity is
shown in seascape mode when the screen orientation is locked in seascape
mode.
Root cause:
DisplayRotation allows showing an activity in seascape mode even
though the activity has SCREEN_ORIENTATION_LANDSCAPE flag. Some
application wants to avoid seascape mode but it can not.
Solution:
Respect android:screenOrientation="landscape" attribute. The screen
should be flipped from seascape to landscape according to the attribute.
Also respect "portrait" in the same way.
Bug: 132665278
Test: atest DisplayRotationTest
Change-Id: Ia5b1115797df78838c8693206f5ed1f0af62c49c
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java')
0 files changed, 0 insertions, 0 deletions