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 ad890b8..64466bb 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 @@ -964,8 +964,10 @@ object SystemUIHooker : YukiBaseHooker() { /** 将图标的背景和着色交给模块的自绘 Drawable */ private fun ImageView.setCustomNotifyIcon(context: Context, customTriple: Triple, drawable: Drawable, iconColor: Int) { - // 标记为本模块接管(兜底判断/防止重复处理用) - moduleStyledIcons[this] = true + if (!isUpperOfColorOS17) { + // 标记为本模块接管(兜底判断/防止重复处理用) + moduleStyledIcons[this] = true + } // 背景与图标都交由自绘 Drawable 处理:清空视图层裁切/背景/内边距/着色,并用 FIT_XY 让 Drawable 充满视图 clipToOutline = false scaleType = ImageView.ScaleType.FIT_XY @@ -2494,4 +2496,4 @@ object SystemUIHooker : YukiBaseHooker() { override fun getIntrinsicWidth() = glyph.intrinsicWidth override fun getIntrinsicHeight() = glyph.intrinsicHeight } -} \ No newline at end of file +}