commit | 50cfcf9c4ecce255f9205339933440b2c892e34b | [log] [tgz] |
---|---|---|
author | Lucas Silva <lusilva@google.com> | Thu Jan 25 17:17:45 2024 -0500 |
committer | Lucas Silva <lusilva@google.com> | Thu Jan 25 23:51:28 2024 -0500 |
tree | c5da0f849c2cb4d3677d6b59facca93575557d67 | |
parent | a578f07c56c49421ec97d199638ec84a2894d441 [diff] |
Update keyguard flow to always be on main thread. KeyguardUpdateMonitor.registerCallback will throw an execption if not on the main thread. Therefore this change enforces that the flow is always collected on the main thread, even if the consumer tries to collect it in a background thread. Bug: 319331389 Test: atest KeyguardRepositoryImplTest Flag: NA Change-Id: I33482ed5797e87888dec55201ec650ccc89b7b38