mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-04 01:35:26 +08:00
fix: 修复调用方式解决Hyper 1.0 焦点反色失败 (#228)
* fix: 未适配图标的app在焦点通知会以白块显示 * fix: 修复调用方式解决Hyper 1.0 焦点反色失败 * fix: 修复调用方式解决Hyper 1.0 焦点反色失败
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
/** 去他妈的焦点通知彩色图标 */
|
||||
|
Reference in New Issue
Block a user