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

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

Merge "Inital value for FakeCustomizationProviderClient" into main

parents f54046d6 818666dc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ class FakeCustomizationProviderClient(
            )
        ),
    runtimeValues: Bundle = Bundle(),
    initialSelections: Map<String, List<String>> = emptyMap(),
) : CustomizationProviderClient {

    private val slots = MutableStateFlow(slots)
@@ -73,7 +74,8 @@ class FakeCustomizationProviderClient(
    private val flags = MutableStateFlow(flags)
    private val runtimeValues = MutableStateFlow(runtimeValues)

    private val selections = MutableStateFlow<Map<String, List<String>>>(emptyMap())
    private val selections: MutableStateFlow<Map<String, List<String>>> =
        MutableStateFlow(initialSelections)

    override suspend fun insertSelection(slotId: String, affordanceId: String) {
        val slotCapacity =