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
Loading
Please register or sign in to comment