Skip to content
Commit 8f222043 authored by Chris Li's avatar Chris Li
Browse files

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
parent 0672ae40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment