Revert "Fix MIUI style notification hook failed when SystemUI not Re-optimize"

This reverts commit b986c2df18.
This commit is contained in:
2022-07-01 00:13:38 +08:00
parent b986c2df18
commit 788d4605eb

View File

@@ -824,15 +824,10 @@ object SystemUIHooker : YukiBaseHooker() {
} }
/** 修改 MIUI 风格通知栏的通知图标 */ /** 修改 MIUI 风格通知栏的通知图标 */
MiuiNotificationViewWrapperClass.hook { MiuiNotificationViewWrapperClass.hook {
/** 干掉设置通知小图标 */ /** 替换通知小图标 */
injectMember { injectMember {
method { name = "handleAppIcon" } method { name = "handleAppIcon" }
intercept() replaceUnit {
}
/** 替换 MIUI 通知小图标 */
injectMember {
method { name = "onContentUpdated" }
afterHook {
field { name = "mAppIcon" }.get(instance).cast<ImageView>()?.clone { field { name = "mAppIcon" }.get(instance).cast<ImageView>()?.clone {
compatNotifyIcon( compatNotifyIcon(
context = context, context = context,