Use transaction for local activity relaunch
To know that onPostCreate callback should be executed we should use TransactionExecutor for the entire transaction. It will fill PendingActions object during the launch and the callback will be triggered after onStart. This CL changes local activity relaunch to use Lifecycler infrastructure. We should immediately execute local recreate requests, because if we wait until the scheduled message to be handled, we may already be in a different state and final state request in the scheduled relaunch transaction will already be obsolete. Bug: 72029061 Bug: 64610483 Bug: 76088057 Bug: 73747058 Test: ActivityLifecycleTests Change-Id: Ia53ecd199c83d030932c4493064e58568805f2a5
Loading
Please register or sign in to comment