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

Commit 818666dc authored by George Lin's avatar George Lin
Browse files

Inital value for FakeCustomizationProviderClient

Test: Unit test
Bug: 409336077
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: Ib83e4a6cf4c7bc34feef82279fb59706af5d1bc4
parent 6ee7692b
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 =