diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-05-05 17:20:32 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-05-14 16:22:48 +0800 |
commit | 742313e4c3e406c8a3aedb8310e208ad0b01764c (patch) | |
tree | 31d672f1f59665fadb42be2baaf65a6afb75476a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | a08db2de291dc771b55e9bf3cacc51a6d2b2bc35 (diff) |
Do not capture task snapshot with fixed rotated activity
Because the rotation of activity and task are different, The
information of snapshot may be inconsistent. And since it is a
temporal state, in most cases the snapshot is available after
the fixed rotation is cleared. This fixes a non-rotated snapshot
is shown on a rotated activity when repeating launch and swipe
to home quickly.
Also the fixed rotation launching app should not be cleared if
there is pending rotation, otherwise it is too early that the
display is still in old rotation. This fixes flickering when
switching between activities in different rotation from quickstep.
Bug: 155862858
Test: atest TaskSnapshotControllerTest#testPrepareTaskSnapshot
ActivityRecordTests#testActivityOnCancelFixedRotationTransform
Change-Id: I8e30e87ea4aad907c4ad4338b91fcff3078380ad
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions