diff options
| author | 2022-04-22 21:54:54 +0800 | |
|---|---|---|
| committer | 2022-04-25 18:30:29 +0800 | |
| commit | a930e1ee540696e65fb73ab06e2708bdb88f930e (patch) | |
| tree | 031affd6992f5f54977a7cd01d64e1f380e0ffb6 /libs/androidfw/AttributeResolution.cpp | |
| parent | 0b91be7283d9221e5f548c3b6ae2c07135d2ee2b (diff) | |
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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions