From 46c9fc5959921da69c80a94f9396fa2a2cf25384 Mon Sep 17 00:00:00 2001 From: oxmc <67136658+oxmc@users.noreply.github.com> Date: Fri, 5 Jun 2026 21:00:06 -0700 Subject: [PATCH] iconloaderlib: remove forceMonochromeAppIconsAdaptColors flag (not in this AOSP revision) --- .../0001-remove-missing-aconfig-flag.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 frameworks/libs/systemui/iconloaderlib/0001-remove-missing-aconfig-flag.patch diff --git a/frameworks/libs/systemui/iconloaderlib/0001-remove-missing-aconfig-flag.patch b/frameworks/libs/systemui/iconloaderlib/0001-remove-missing-aconfig-flag.patch new file mode 100644 index 0000000..78473ae --- /dev/null +++ b/frameworks/libs/systemui/iconloaderlib/0001-remove-missing-aconfig-flag.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: PawletOS +Date: Thu, 05 Jun 2026 00:00:00 +0000 +Subject: [PATCH] Remove forceMonochromeAppIconsAdaptColors flag reference + +The flag does not exist in this AOSP revision. Default to the +adapt-colors path (behaviour unchanged for system builds). + +--- +diff --git a/src/com/android/launcher3/icons/mono/MonoThemedBitmap.kt b/src/com/android/launcher3/icons/mono/MonoThemedBitmap.kt +--- a/src/com/android/launcher3/icons/mono/MonoThemedBitmap.kt ++++ b/src/com/android/launcher3/icons/mono/MonoThemedBitmap.kt +@@ -83,7 +83,7 @@ class MonoThemedBitmap( + override fun updateWithTheme(theme: BitmapInfo.DrawableCreationParams): Bitmap? { + val drawable = drawable ?: return null + val foreground = BitmapDrawable(null, drawable) +- if (!Flags.forceMonochromeAppIconsAdaptColors()) { ++ if (false) { + return BitmapRenderer.createHardwareBitmap(drawable.intrinsicWidth, + drawable.intrinsicHeight) { canvas -> + foreground.setBounds(0, 0, canvas.width, canvas.height)