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

Commit 5efce14c authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Override lifecycle of always composed contents

This CL makes all STL contents (overlays, scenes) that are always
composed override their LocalLifecycleOwner so that:

1. It is max(CREATED, previousOwner.currentState) when the content is
   invisible.
2. It is max(RESUMED, previousOwner.currentState) when the content is
   visible.

This will make all lifecycle-aware utilities like
Flow.collectAsStateWithLifecycle() cancel their work when the content is
not visible. See go/flexi-alwaysCompose for details.

Bug: 433309418
Test: atest ContentTest
Flag: com.android.systemui.scene_container
Change-Id: Ie128273909861d95d41929e62fb650a77c09672b
parent 115083e3
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