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

Do not affect WindowContainer#getOrientation by animation

If an activity is launched with ActivityOptions#
makeSceneTransitionAnimation, it will invoke convertToTranslucent/
convertFromTranslucent to change mOccludesParent temporally for
showing shared elements above the previous activity.

And because WindowContainer#getOrientation() skips the requested
orientation if fillsParent() returns false. if fillsParent() uses
mOccludesParent, the activity may lose the orientation during the
transition which may cause unexpected display orientation change.

Fixes: 228937289
Test: ActivityRecordTests#testShouldStartWhenMakeClientActive
Change-Id: I03f70af26d49fdbdcba498b975bc65fcd7bf7c47
parent 0b91be72
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