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

Commit 55b777b7 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

SystemUI: Fix missing color for adaptive backgrounds of mono-icon

The MonoIconThemeController needs to supply 3 colors now.

Bug: 418850749
Flag: com.android.launcher3.force_monochrome_app_icons
Test: Existing tests
Change-Id: I333c257be6ede802294cf3b01b16337954e0996d
parent ebb4d530
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ constructor(
                            intArrayOf(
                                /* background */ res.getColor(R.color.materialColorPrimary),
                                /* icon */ res.getColor(R.color.materialColorSurfaceContainerHigh),
                                /* adaptive background */ res.getColor(R.color.materialColorPrimary)
                            )
                        },
                    )
@@ -145,7 +146,11 @@ constructor(
                MonoIconThemeController(
                    shouldForceThemeIcon = true,
                    colorProvider = { _ ->
                        intArrayOf(/* background */ Color.BLACK, /* icon */ Color.WHITE)
                        intArrayOf(
                            /* background */ Color.BLACK,
                            /* icon */ Color.WHITE,
                            /* adaptive background */ Color.BLACK
                        )
                    },
                )
        }