mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-05 10:15:31 +08:00
Fix MIUI style notification hook failed when SystemUI not Re-optimize
This commit is contained in:
@@ -824,10 +824,15 @@ object SystemUIHooker : YukiBaseHooker() {
|
|||||||
}
|
}
|
||||||
/** 修改 MIUI 风格通知栏的通知图标 */
|
/** 修改 MIUI 风格通知栏的通知图标 */
|
||||||
MiuiNotificationViewWrapperClass.hook {
|
MiuiNotificationViewWrapperClass.hook {
|
||||||
/** 替换通知小图标 */
|
/** 干掉设置通知小图标 */
|
||||||
injectMember {
|
injectMember {
|
||||||
method { name = "handleAppIcon" }
|
method { name = "handleAppIcon" }
|
||||||
replaceUnit {
|
intercept()
|
||||||
|
}
|
||||||
|
/** 替换 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,
|
||||||
|
Reference in New Issue
Block a user