mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-04 01:35:26 +08:00
Revert "Fix MIUI style notification hook failed when SystemUI not Re-optimize"
This reverts commit b986c2df18
.
This commit is contained in:
@@ -824,15 +824,10 @@ object SystemUIHooker : YukiBaseHooker() {
|
||||
}
|
||||
/** 修改 MIUI 风格通知栏的通知图标 */
|
||||
MiuiNotificationViewWrapperClass.hook {
|
||||
/** 干掉设置通知小图标 */
|
||||
/** 替换通知小图标 */
|
||||
injectMember {
|
||||
method { name = "handleAppIcon" }
|
||||
intercept()
|
||||
}
|
||||
/** 替换 MIUI 通知小图标 */
|
||||
injectMember {
|
||||
method { name = "onContentUpdated" }
|
||||
afterHook {
|
||||
replaceUnit {
|
||||
field { name = "mAppIcon" }.get(instance).cast<ImageView>()?.clone {
|
||||
compatNotifyIcon(
|
||||
context = context,
|
||||
|
Reference in New Issue
Block a user