summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-06-12 00:44:02 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-06-12 01:01:46 +0800
commit95cb52a647c512b77aa7fd13081cecd86cab1a52 (patch)
tree9417aa7cb735b46dee4b6bbb6f78f0c055edc8f8 /tools/aapt2/java/JavaClassGenerator.cpp
parenta4614b0f1fa2b1aed944a659355a5a91c2a91c5d (diff)
Don't lock rotation to natural rotation when entering overview
Overview (recents) will use fixed portrait orientation if home rotation is disabled, then the orientation will be portrait when leaving overview to a application which was rotated to landscape. Which is inconsistent from user perspective. This change ignores the rotation change caused by the overview once. So the original user rotation can be preserved. Bug: 148982179 Test: 1. Disable auto-rotation and home rotation. 2. Launch an activity in portrait. 3. Rotate the device to landscape and press rotation button. 4. Enter overview (recents). 5. Return to the application. Check with 2-button, 3-button, and gesture navigation. The device should be in landscape after step 5. And the behavior doesn't change with home rotation enabled. Change-Id: I43005753031b13e66c3c388b221d51ce3fd543bf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions