From 4f1d74d5ff21cfeec69bd751f0847e00b5d2695d 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: Thu, 2 Jan 2025 22:56:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E9=80=82=E9=85=8D=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=9A=84app=E5=9C=A8=E7=84=A6=E7=82=B9=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E4=BC=9A=E4=BB=A5=E7=99=BD=E5=9D=97=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20(#225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 e0da7aa..7c40159 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 @@ -316,7 +316,7 @@ object SystemUIHooker : YukiBaseHooker() { val focusIconId = nf?.notification?.extras?.getInt("miui.focus.iconId", -1) val focusRv = nf?.notification?.extras?.getParcelable("miui.focus.rv") val focusParam = nf?.notification?.extras?.getString("miui.focus.param") - if (!focusTicker.isNullOrBlank()) + if (focusRv != null) YLog.debug( msg = "(Processing $tag with Focus Notification) ↓\n" + "[Title]: ${nf.notification?.extras?.getString(Notification.EXTRA_TITLE)}\n" + @@ -996,7 +996,7 @@ object SystemUIHooker : YukiBaseHooker() { ).also { pair -> val originalBitmap = pair.first?.toBitmap() val bitmap = originalBitmap?.let { Bitmap.createScaledBitmap(it, 50, 50, true) } - result = Icon.createWithBitmap(bitmap).apply { setTint(if (isDark) Color.BLACK else Color.WHITE) } + result = Icon.createWithBitmap(bitmap).apply { if (pair.second) setTint(if (isDark) Color.BLACK else Color.WHITE) } } } }