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
Loading
Please register or sign in to comment