Fix in some cases the color of notification icons still not refreshed in SystemUIHooker

This commit is contained in:
2023-02-04 01:57:35 +08:00
parent b2bb05c4e7
commit 630b803fa4

View File

@@ -776,10 +776,7 @@ object SystemUIHooker : YukiBaseHooker() {
} }
/** Hook 更新通知图标事件 */ /** Hook 更新通知图标事件 */
injectMember { injectMember {
method { method { name { it == "updateNotificationIcons" || it == "onChanged" } }.all()
name = "updateNotificationIcons"
paramCount = 1
}
afterHook { afterHook {
field { name = "mNotificationIcons" }.get(instance).cast<ViewGroup>()?.also { field { name = "mNotificationIcons" }.get(instance).cast<ViewGroup>()?.also {
/** 重新设置通知图标容器实例 */ /** 重新设置通知图标容器实例 */