From 966ed5b8d0ec0c1e1ba6457510c24c0e8da04033 Mon Sep 17 00:00:00 2001 From: Timeline <53483352+Nep-Timeline@users.noreply.github.com> Date: Sat, 14 Nov 2026 11:05:36 +0800 Subject: [PATCH] chore: use silent to avoid errors caused by missing methods ColorOS 17 has removed this method --- .../com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b291d30..f19036d 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 @@ -2151,7 +2151,7 @@ object SystemUIHooker : YukiBaseHooker() { if (isNewNotification) { // 阻止颜色覆盖 - OplusNotificationGroupExtImplClass?.resolve()?.optional()?.firstMethodOrNull { + OplusNotificationGroupExtImplClass?.resolve()?.optional(silent = true)?.firstMethodOrNull { name = "updateExpandIconColorFilter" parameterCount = 1 }?.hook()?.intercept() @@ -2541,4 +2541,4 @@ object SystemUIHooker : YukiBaseHooker() { override fun getIntrinsicWidth() = glyph.intrinsicWidth override fun getIntrinsicHeight() = glyph.intrinsicHeight } -} \ No newline at end of file +}