fix: 修复调用方式解决Hyper 1.0 焦点反色失败 (#228)

* fix: 未适配图标的app在焦点通知会以白块显示

* fix: 修复调用方式解决Hyper 1.0 焦点反色失败

* fix: 修复调用方式解决Hyper 1.0 焦点反色失败
This commit is contained in:
李太白
2025-01-06 21:57:41 +08:00
committed by GitHub
parent 4f1d74d5ff
commit 350e54fac7

View File

@@ -979,7 +979,7 @@ object SystemUIHooker : YukiBaseHooker() {
YLog.debug("FocusedNotifPromptView DEBUG $isDark ${mIcon.any()}")
/** HyperOS 1.x 旧版本适配 */
if (miosVersion == "1.0" || miosVersion == "1.1")
mIcon.current()?.method { name = "setColorFilter" }?.call(if (isDark <= 0.5f) Color.WHITE else Color.BLACK)
mIcon.current()?.superClass()?.method { name = "setColorFilter" }?.call(if (isDark <= 0.5f) Color.WHITE else Color.BLACK)
}
}
/** 去他妈的焦点通知彩色图标 */