From 5d81b8ff87e54a26db9254b66b58760f9f856e99 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Mon, 4 Apr 2022 13:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=20MIUI=201?= =?UTF-8?q?2=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../miui/notify/hook/entity/SystemUIHooker.kt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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 dec6000..eb83107 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 @@ -274,15 +274,6 @@ class SystemUIHooker : YukiBaseHooker() { } } - /** - * 获取当前通知栏的样式 - * - * - ❗新版本可能不存在这个方法 - * @return [Boolean] - */ - private val isShowMiuiStyle - get() = safeOfFalse { NotificationUtilClass.clazz.method { name = "showMiuiStyle" }.get().invoke() ?: false } - /** * 处理为圆角图标 * @return [Drawable] @@ -689,11 +680,7 @@ class SystemUIHooker : YukiBaseHooker() { name = "shouldSubstituteSmallIcon" param(ExpandedNotificationClass) } - /** - * MIUI 12 在非原生样式下 MIPUSH 的图标着色异常 - * 所以判断是 MIUI 样式就停止 Hook 状态栏图标 - */ - replaceAny { hasIgnoreStatusBarIconColor.not() && isShowMiuiStyle } + replaceToFalse() } /** 强制回写系统的状态栏图标样式为原生 */ injectMember {