From 4b00d84d8b442055752090ae560007ba46ccda50 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 7 Feb 2023 05:21:15 +0800 Subject: [PATCH] Modify replace to new placeholder notification icon in SystemUIHooker --- .../coloros/notify/hook/entity/SystemUIHooker.kt | 2 +- app/src/main/res/drawable/ic_message.xml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/ic_message.xml diff --git a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt index a3d4980..52eac7d 100644 --- a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt @@ -369,7 +369,7 @@ object SystemUIHooker : YukiBaseHooker() { } } if (isGrayscaleIcon.not() && ConfigData.isEnableNotifyIconFixPlaceholder) - customPair = Triple(context.resources.drawableOf(R.drawable.ic_unsupported), 0, true) + customPair = Triple(context.resources.drawableOf(R.drawable.ic_message), 0, true) } } return customPair ?: Triple(null, 0, false) diff --git a/app/src/main/res/drawable/ic_message.xml b/app/src/main/res/drawable/ic_message.xml new file mode 100644 index 0000000..cbfe4a0 --- /dev/null +++ b/app/src/main/res/drawable/ic_message.xml @@ -0,0 +1,10 @@ + + + \ No newline at end of file