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

Skip to content
Commit f7fea09a authored by burakov's avatar burakov
Browse files

[flexiglass] Remove the redundant `isThrottled` state.

Currently, we have a state for `throttled` (which is meaningless when
throttling is inactive) and another one for `isThrottled`. This can lead
to inconsistent state and adds an unnecessary derived state to maintain.
This CL makes `throttled` null when throttling is inactive, removing the
needs for `isThrottled` to convey that.

Bonus: this converts the repository's `throttled` into a
`MutableStateFlow`, per the new repository conventions outlined in
go/repository-conventions.

Bug: 314757822
Test: Unit tests updated and still pass.
Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT
Change-Id: I4be0eddf83d2aad095ea0e291635ba1e459779fe
parent 69fa8eb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment