From db4b418ed49d528eb42e24d5316a1bd381feb303 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Thu, 2 Nov 2023 09:10:50 +0800 Subject: [PATCH] fix: updateNotificationIcons on A14 and HyperOS --- .../java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8c6c930..de36731 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 @@ -856,7 +856,7 @@ object SystemUIHooker : YukiBaseHooker() { } /** Hook 更新通知图标事件 */ method { - name { it == "updateNotificationIcons" || it == "onChanged" } + name { it == "updateNotificationIcons" || it.startsWith("onChanged") } }.hookAll().after { field { name = "mNotificationIcons" }.get(instance).cast()?.also { /** 重新设置通知图标容器实例 */