summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-09-22 18:05:25 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-10-02 01:19:18 +0000
commit780e5452cd727860290d37cb6922e188713f6489 (patch)
treec32672bae1f2a0e9f346838c815d40b000db812d /rs/java/android/renderscript/ProgramStore.java
parent29bedbcd95d31919d652f7446e87ad38dcf352c7 (diff)
Use normal rotation if orientation is changed by resume-scheduled app
With traditional normal rotation, if an app calls Activity#setRequestedOrientation to change orientation in its onCreate or onResume, the system display info will be updated immediately. So if the app gets display rotation right after the orientation request, it can get the rotated result. While if fixed rotation transform takes effect for the case, though the rotated display adjustments will be sent to the app, it is too late that the app may have accessed the global display info which is not rotated, that may cause inconsistent UI layout if the app depends on the rotation info. Bug: 167564038 Test: DisplayContentTests#testNoFixedRotationOnResumedScheduledApp Change-Id: I3253264cb1bb8886074e88012582daa3589a1896 Merged-In: I3253264cb1bb8886074e88012582daa3589a1896 (cherry picked from commit 4d576bfa25b764b3d2dd44761f632e7962443b02)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions