Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dc6e0ff9 authored by Louis Chang's avatar Louis Chang
Browse files

Abort AE saved state restoration if it is too late

Abort the AE saved state restoration if it is not yet able
to be restored before any Activity#onCreate to be called.

And start the Task root activity as a fresh restart as a
fallback approach. Note that this may not always be correct
(for example, an new Activity was expected to be started
on the reused Task, but is now showing the Task root activity),
but it should be a minimum fallback in case the app is not
following the best practice to set up the embedding rules
in Application#onCreate.

Bug: 289875940
Test: verified on demo app
Flag: com.android.window.flags.ae_back_stack_restore
Change-Id: If7d33ec66a2476adf24892e54a4856db9b3d020a
parent 64358d6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment