summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-01-19 00:26:24 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-01-20 22:14:36 +0800
commita83c85c84242e01b892f44b5b28e16c2f22b326d (patch)
tree2ee02398b93c0146bc2841f94ddcb5524e380cae /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent1e465216e3ccd56215835c014b4d71f7e8598368 (diff)
Clear fixed rotation for app no longer changes rotation
For example: launch a landscape activity while device is portrait, and then launch another portrait activity before previous transition is done. If the landscape activity is destroyed before sending the fixed rotation adjustment for restoration, the adjustment is always retained by client side app. That causes the Display objects associated with application Resources always return rotation from the adjustment. This change clear the rotated state immediately when the top app has changed to the one that won't rotate the display. So the previous activity can receive the adjustment for restoration in time. Also simply a bit for the path of clearing fixed rotation state to avoid sending duplicated adjustments. Bug: 177390830 Test: DisplayContentTests#testClearIntermediateFixedRotation Change-Id: Ic13dff8b7a23a6022201a8fe7a981bb511b6e856
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions