From a7c02467defc3d09e940e0a31733cf4402cfbf52 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Mon, 30 May 2022 23:32:40 +0800 Subject: [PATCH] Fix mi push icon wrong when open force app icon in notify panel --- .../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 610ddd3..2400a30 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 @@ -474,7 +474,7 @@ object SystemUIHooker : YukiBaseHooker() { /** 处理自定义通知图标优化 */ when { prefs.get(DataConst.ENABLE_NOTIFY_ICON_FORCE_APP_ICON) && isEnableHookColorNotifyIcon(isHooking = false) -> - setDefaultNotifyIcon(context.findAppIcon(notifyInstance.compatOpPkgName)) + setDefaultNotifyIcon(context.findAppIcon(notifyInstance.nfPkgName)) customIcon != null -> iconImageView.apply { /** 设置不要裁切到边界 */ clipToOutline = false