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

Commit 2a011601 authored by Julia Tuttle's avatar Julia Tuttle Committed by Ioana Alexandru
Browse files

Set shouldForceThemeIcon = true in app icon factory

Fixes: 406507218
Test: manual
Flag: android.app.ui_rich_ongoing
Change-Id: Ie418b89cf48f7ba5bbcd6b429bcaf402e91af038
parent 4d0a4546
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -109,13 +109,14 @@ constructor(@ShadeDisplayAware private val sysuiContext: Context, dumpManager: D
                // Initialize the controller so that we can support themed icons.
                mThemeController =
                    MonoIconThemeController(
                        shouldForceThemeIcon = true,
                        colorProvider = { ctx ->
                            val res = ctx.resources
                            intArrayOf(
                                /* background */ res.getColor(R.color.materialColorPrimary),
                                /* icon */ res.getColor(R.color.materialColorSurfaceContainerHigh),
                            )
                        }
                        },
                    )
            }
        }
@@ -129,9 +130,10 @@ constructor(@ShadeDisplayAware private val sysuiContext: Context, dumpManager: D
        init {
            mThemeController =
                MonoIconThemeController(
                    shouldForceThemeIcon = true,
                    colorProvider = { _ ->
                        intArrayOf(/* background */ Color.BLACK, /* icon */ Color.WHITE)
                    }
                    },
                )
        }
    }