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

Skip to content
Commit 0822d034 authored by Steve Elliott's avatar Steve Elliott
Browse files

[kairos] Prevent network usage before builder activations

This fixes a potential race condition where kairosNetwork.activateSpec /
transact could be invoked before Dagger-registered KairosActivatable are
activated. This can cause early access to uninitialized Events + States,
which will cause a crash.

The solution is to wrap KairosNetwork so that usage of activateSpec /
transact internally suspend until the KairosCoreStartable has activated
all KairosActivatables.

Flag: com.android.systemui.status_bar_mobile_icon_kairos
Bug: 383172066
Test: atest
Change-Id: Ia302708d64fe61cc2052ac78143a9ce52f1ac960
parent 3867687f
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