summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-04-22 21:54:54 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-04-25 18:30:29 +0800
commita930e1ee540696e65fb73ab06e2708bdb88f930e (patch)
tree031affd6992f5f54977a7cd01d64e1f380e0ffb6 /libs/androidfw/AttributeResolution.cpp
parent0b91be7283d9221e5f548c3b6ae2c07135d2ee2b (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