iconloaderlib: remove forceMonochromeAppIconsAdaptColors flag (not in this AOSP revision)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: PawletOS <build@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)
|
||||
Reference in New Issue
Block a user