summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Chris Li <lihongyu@google.com> 2022-11-30 22:21:00 +0800
committer Chris Li <lihongyu@google.com> 2022-12-03 02:39:56 +0000
commit8f222043383d30d7131b9682e8a8e4113086a97b (patch)
treeea901390eee0c6139d2099aaf827e23bcecf58e0 /libs/androidfw/StringPool.cpp
parent0672ae40dbaab8acf8e2a96c7f78c1fbb468262a (diff)
Fix activity relaunch issue with ActivityEmbedding
When Activity relaunched, the SplitController will receive onActivityDestroyed and onActivityCreated. Before, we always remove all the reference onActivityDestroyed, which can accidentally remove split pair finish relationship. Now we only do that when the activity is actually finishing. Also do the following to make sure there is no other regression: 1. Replace the stored activity reference with activity token, so it won't be changed when activity relaunched. 2. Update #getContainerWithActivity to first check pending appeared activity to make sure it returns the correct container before the server update. Bug: 260301635 Test: atest WMJetpackUnitTests:SplitControllerTest Test: atest WMJetpackUnitTests:TaskFragmentContainerTest Change-Id: Ife6de66d22e336bb872a9fccbdf03562fe6e089d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions