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

Skip to content
Commit d24a9b14 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

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
parent f8a9bb95
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