From 350e54fac7295f825b5ea46eca7a635184f3afa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A4=AA=E7=99=BD?= <36808766+ghhccghk@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:57:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E8=A7=A3=E5=86=B3Hyper=201.0=20=E7=84=A6?= =?UTF-8?q?=E7=82=B9=E5=8F=8D=E8=89=B2=E5=A4=B1=E8=B4=A5=20(#228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 未适配图标的app在焦点通知会以白块显示 * fix: 修复调用方式解决Hyper 1.0 焦点反色失败 * fix: 修复调用方式解决Hyper 1.0 焦点反色失败 --- .../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 7c40159..e2aea12 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 @@ -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) } } /** 去他妈的焦点通知彩色图标 */