summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-04-25 01:58:23 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-04-28 21:09:19 +0800
commitb40f96623267d59b9cf8ae6f565668d6e3ec435d (patch)
tree6e6c891f2c3014cef499e9d76979082ed7de451f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcbc5d2721b8f97e619f4bcf63cb6c58c6f2e7580 (diff)
Clear fixed rotation if display config does not change
There is a timing that when remote rotation is completed, the orientation from sensor has been updated again. If the transition of rotated app hasn't complete, the display is still in previous orientation, then if it is the same as the last value from sensor, the display configuration does not change. So in this case the rotated app needs to be restored to avoid showing different orientation than the display. Fixes: 153327533 Test: ActivityRecordTests#testActivityOnCancelFixedRotationTransform Test: Add delay to execute DisplayRotation#continueRotation. Put device in landscape with a portrait home on top, launch an activity without fixed orientation, and then rotate the device to portrait immediately. The activity should launch in landscape and rotate to portrait with animation. Change-Id: Ic966923a751d94cc6ea86a83c2f600424999799c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions