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

Commit 2830d7ef authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make flow in FakeZenModeRepository lazy" into main

parents 291ac766 27bb9970
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -37,8 +37,9 @@ class FakeZenModeRepository : ZenModeRepository {
    override val globalZenMode: StateFlow<Int>
        get() = mutableZenMode.asStateFlow()

    private val mutableModesFlow: MutableStateFlow<List<ZenMode>> =
    private val mutableModesFlow: MutableStateFlow<List<ZenMode>> by lazy {
        MutableStateFlow(listOf(TestModeBuilder.MANUAL_DND))
    }
    override val modes: Flow<List<ZenMode>>
        get() = mutableModesFlow.asStateFlow()