summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Charles Chen <charlesccchen@google.com> 2022-04-22 12:34:50 +0800
committer Charles Chen <charlesccchen@google.com> 2022-04-29 17:46:55 +0800
commit3e93b2623c8cede5e83b5b906133136d41fc3bab (patch)
tree8451ebd7e0cba649f549eb6def11e80a97863123 /libs/androidfw/StringPool.cpp
parent12873579dc3caf063867997f3dfc631c6d06e84c (diff)
Update SplitContainer for non-finishing containers
If an app is split with an Activity from another process by Activity Embedding feature, and is launched twice with different orientations, there's a chance that the app still shows in previous orientation at the second launch even if the orientation is changed. The root cause is that, the app goes back to background before the secondary container receives its TaskFragmentInfo. Also, there's no pendingActivities and #onActivityPostCreated won't be invoked, and also #updateContainer to change its layout, because the Activity is from other process. Moreover, in #onTaskFragmentParentInfoChanged, updateContainer is skipped because secondary container is empty(No pending activities, and hasn't received its TaskFragmentInfo). This CL fixes the issue by verifying if one or both containers are finished instead. fixes: 228906392 Test: atest SplitControllerTest Test: manual - reproducible steps in bug Change-Id: Ifba4b56c9225089776835aeeef7c4a13249b55bf
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions