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

Commit cc58713d authored by Matt Pietal's avatar Matt Pietal
Browse files

Remove pointless `sample` calls when StateFlow exists

`sample` launches coroutines to collect the value from a flow as it
updates. This is not needed for StateFlows, when the value can be
queried as needed.

This should reduce continuations.

Also, change how StatusBarStateControllerImpl collects shade expansion.
isAnyExpanded uses legacy behavior that updates on bouncer expansion.

Bug: 405159039
Test: perfetto analysis
Flag: EXEMPT performance fix
Change-Id: Iba5df3db2907df2f130ac9fe2b437d4dc284a345
parent 928b7963
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