From 630b803fa4de7b70102a6c5626346145a05f7749 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sat, 4 Feb 2023 01:57:35 +0800 Subject: [PATCH] Fix in some cases the color of notification icons still not refreshed in SystemUIHooker --- .../com/fankes/miui/notify/hook/entity/SystemUIHooker.kt | 5 +---- 1 file changed, 1 insertion(+), 4 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 e097ff1..5536743 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 @@ -776,10 +776,7 @@ object SystemUIHooker : YukiBaseHooker() { } /** Hook 更新通知图标事件 */ injectMember { - method { - name = "updateNotificationIcons" - paramCount = 1 - } + method { name { it == "updateNotificationIcons" || it == "onChanged" } }.all() afterHook { field { name = "mNotificationIcons" }.get(instance).cast()?.also { /** 重新设置通知图标容器实例 */