fix: handleAppIcon on A14 and HyperOS

This commit is contained in:
2023-11-02 09:18:12 +08:00
parent 25a23d7e1a
commit d330510788

View File

@@ -931,9 +931,7 @@ object SystemUIHooker : YukiBaseHooker() {
} }
/** 修改 MIUI 风格通知栏的通知图标 */ /** 修改 MIUI 风格通知栏的通知图标 */
MiuiNotificationViewWrapperClass?.apply { MiuiNotificationViewWrapperClass?.apply {
method { constructor().hook().after {
name = "handleAppIcon"
}.hook().replaceUnit {
field { name = "mAppIcon" }.get(instance).cast<ImageView>()?.clone { field { name = "mAppIcon" }.get(instance).cast<ImageView>()?.clone {
compatNotifyIcon( compatNotifyIcon(
context = context, context = context,