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
7 files changed