Ignore activity lifecycle requests without matching client records.
Previously, changes were made to finish destroyed activities. This prevented the code sending lifecycle requests to a non-existent client record. However, there are scenarios where an activity can be destroyed without being finished. Finishing these activities will lead to side effects, such as the activity not being in history and therefore not restored when navigated back to. This changelist unlinks finishing from setting an activity's state to destroyed. For now, we will suppress lifecycle requests client side without matching records. Fixes: 74403650 Fixes: 74409828 Bug: 71506345 Test: enable don't keep activities. navigate back and forth Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests#testRestoreFromKill Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests#testPausedWhenRecreatedFromInNonFocusedStack Change-Id: I1b76a4758c3be27dc30ecac5ee56949a5b173754
Loading
Please register or sign in to comment