commit | d24a9b14c3c9ab2acde794a7e8571875a8ac41ea | [log] [tgz] |
---|---|---|
author | Nicolo' Mazzucato <nicomazz@google.com> | Mon Jun 17 15:12:28 2024 +0000 |
committer | Nicolo' Mazzucato <nicomazz@google.com> | Mon Jun 17 15:12:28 2024 +0000 |
tree | 67e20ed4d8b113e9b9cdeade9ed4818912c53f13 | |
parent | f8a9bb954489dc2c220e0a6d47cae4c10b9c3d7c [diff] |
Make mapElementsLazily thread-safe in the previous version onEach could have been executed concurrently by several collectors. This new version doesn't have any mutable state. Also making enabledDisplay an hot StateFlow. Bug: 345472038 Test: DisplayRepositoryTest Flag: com.android.systemui.enable_efficient_display_repository Change-Id: Ifb3466f7c2a3216d6f9d7bed28a99d3edfb4d90f