diff --git a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt index 511862f..5525c7a 100644 --- a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt @@ -977,9 +977,7 @@ object SystemUIHooker : YukiBaseHooker() { val mIcon = field { name = "mIcon" }.get(instance) if (ConfigData.isEnableModuleLog) YLog.debug("FocusedNotifPromptView DEBUG $isDark ${mIcon.any()}") - /** HyperOS 1.x 旧版本适配 */ - if (miosVersion == "1.0" || miosVersion == "1.1") - mIcon.current()?.superClass()?.method { name = "setColorFilter" }?.call(if (isDark <= 0.5f) Color.WHITE else Color.BLACK) + mIcon.current()?.superClass()?.method { name = "setColorFilter" }?.call(if (isDark <= 0.5f) Color.WHITE else Color.BLACK) } } /** 去他妈的焦点通知彩色图标 */ @@ -996,7 +994,7 @@ object SystemUIHooker : YukiBaseHooker() { ).also { pair -> val originalBitmap = pair.first?.toBitmap() val bitmap = originalBitmap?.let { Bitmap.createScaledBitmap(it, 50, 50, true) } - result = Icon.createWithBitmap(bitmap).apply { if (pair.second) setTint(if (isDark) Color.BLACK else Color.WHITE) } + result = Icon.createWithBitmap(bitmap) } } }