summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ScriptIntrinsicResize.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-02-22 13:52:07 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-02-22 09:52:46 +0000
commit8fea9c8e897e49950be4d965d44c7301a7ea945b (patch)
tree2c0cb25452c31a667e3ddc43e423095c56e238cb /rs/java/android/renderscript/ScriptIntrinsicResize.java
parent7e2d8b8b131758523ccf022b935ac51ae47ca469 (diff)
Notify client to clear intermediate rotated adjustments
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 to always return rotation from the adjustment. This change notifies client to clear the rotated adjustments if the the display won't be rotated by the next top activity before the transition is done, so the app can get the correct rotation in time. The transform will be cleared at the end of transition animation so the closing animation won't jump cut with rotation change. E.g. launch an activity in different orientation and press home or back key before the launch animation is finished. Also simply a bit for the path of clearing fixed rotation state to avoid sending duplicated adjustments. Bug: 161519202 Bug: 168263090 Bug: 177390830 Test: DisplayContentTests#testClearIntermediateFixedRotationAdjustments Change-Id: Ica074604df3e74eabbdef931531abe51855103e5 Merged-In: Ica074604df3e74eabbdef931531abe51855103e5
Diffstat (limited to 'rs/java/android/renderscript/ScriptIntrinsicResize.java')
0 files changed, 0 insertions, 0 deletions