summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author burakov <burakov@google.com> 2023-12-04 14:54:25 +0000
committer burakov <burakov@google.com> 2023-12-05 12:35:53 +0000
commitf7fea09a0a621ae10433654f5cd8d62315aef490 (patch)
treed4c7154b7ef0d2e03e0119f3480f16b69e49bcb6 /libs/input/SpriteController.cpp
parent69fa8eb54413e847f2916d15feb96b55a2776c56 (diff)
[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
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions