summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-04-06 20:48:06 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-04-13 18:08:36 +0800
commitd16620e8287da61d7fa0b7e157fd2f30f9253b55 (patch)
treeea3c4207b78ce76e6db79c253ba478a3365ddea5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent13d870c8cd929958a647866c0140b1ea5a23c634 (diff)
Apply rotation animation to restore rotated activity
Consider the steps with fixed rotation enabled: 1. Sensor reports landscape and the foreground is a fixed portrait activity, so the display is portrait. 2. Launch a rotatable activity so the activity is created in landscape. Before the remote rotation completes, the display hasn't applied the rotation. 3. Sensor reports portrait and then the remote rotation is done. Display is still portrait but the rotatable activity has shown as rotated. To avoid flickering when updating the configuration of the activity from landscape to portrait, a rotation animation with customized original rotation is still applied to cover the change. Fixes: 151597653 Test: ActivityRecordTests#testActivityOnCancelFixedRotationTransform Change-Id: Ie897885782aaa1411113bb7fdbac6c4f33fdc0ef
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions