Fix notification panel icon reset by system problem in SystemUIHooker

This commit is contained in:
2023-04-18 01:05:35 +08:00
parent fa99a57027
commit 1efb18f4e1

View File

@@ -852,6 +852,8 @@ object SystemUIHooker : YukiBaseHooker() {
}.also { nf ->
nf?.notification?.also {
it.smallIcon.loadDrawable(context)?.also { iconDrawable ->
/** 执行替换 */
fun doParse() {
compatNotifyIcon(
context = context,
nf = nf,
@@ -862,6 +864,10 @@ object SystemUIHooker : YukiBaseHooker() {
iconView = this
)
}
doParse()
/** 延迟重新设置防止部分机型的系统重新设置图标出现图标着色后黑白块问题 */
delayedRun(ms = 1500) { doParse() }
}
}
}
}