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

Commit 577a2a72 authored by Steve Elliott's avatar Steve Elliott
Browse files

[kairos] cache upstream patches node for MuxPrompt

Flag: com.android.systemui.status_bar_mobile_icon_kairos
Bug: 383172066
Test: atest
Change-Id: If1b79600c0a2d6df28dd94b490e8909220f0f476
parent 8eda9dad
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -320,14 +320,12 @@ internal inline fun <A> switchPromptImplSingle(
    crossinline getStorage: EvalScope.() -> EventsImpl<A>,
    crossinline getPatches: EvalScope.() -> EventsImpl<EventsImpl<A>>,
): EventsImpl<A> {
    val patches =
        mapImpl(getPatches) { newEvents, _ -> singleOf(Maybe.present(newEvents)).asIterable() }
    val switchPromptImpl =
        switchPromptImpl(
            getStorage = { singleOf(getStorage()).asIterable() },
            getPatches = {
                mapImpl(getPatches) { newEvents, _ ->
                    singleOf(Maybe.present(newEvents)).asIterable()
                }
            },
            getPatches = { patches },
            storeFactory = SingletonMapK.Factory(),
        )
    return mapImpl({ switchPromptImpl }) { map, logIndent ->