Skip to content
Commit d16620e8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 13d870c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment