commit | d6624fb4517efc3da8dcf07b9876f2fc079ee54e | [log] [tgz] |
---|---|---|
author | Matt Pietal <mpietal@google.com> | Wed Aug 14 12:32:13 2024 +0000 |
committer | Matt Pietal <mpietal@google.com> | Wed Aug 14 17:37:24 2024 +0000 |
tree | 5ac9d74c74b9e231e866f569df890b0023abba80 | |
parent | d842bdb91844e6b95002f7528e5ef274905c2e87 [diff] |
Use State.value instead of sample() Replace some early uses of sample(), which were used to access state. There is no need for coroutines to flow these values, and it may cause some race conditions if coroutine execution is delayed. Just check the current value of the StateFlow. Fixes: 356696593 Test: atest SystemUiRoboTests:com.android.systemui.keyguard.domain.interactor Flag: EXEMPT bugfix Change-Id: I62e8db5a066f888b0402beb91c5044d081b1acab