mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
Merge code
This commit is contained in:
@@ -374,10 +374,9 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
param(ExpandedNotificationClass.clazz)
|
param(ExpandedNotificationClass.clazz)
|
||||||
}
|
}
|
||||||
method {
|
method {
|
||||||
isUseLegacy = true
|
|
||||||
name = "getSmallIcon"
|
name = "getSmallIcon"
|
||||||
param(ContextClass, ExpandedNotificationClass.clazz)
|
param(ContextClass, ExpandedNotificationClass.clazz)
|
||||||
}
|
}.onFind { isUseLegacy = true }
|
||||||
}
|
}
|
||||||
afterHook {
|
afterHook {
|
||||||
/** 对于之前没有通知图标色彩判断功能的版本判断是 MIUI 样式就停止 Hook */
|
/** 对于之前没有通知图标色彩判断功能的版本判断是 MIUI 样式就停止 Hook */
|
||||||
@@ -427,10 +426,9 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
param(ContextClass, ImageViewClass, ExpandedNotificationClass.clazz)
|
param(ContextClass, ImageViewClass, ExpandedNotificationClass.clazz)
|
||||||
}.remedys {
|
}.remedys {
|
||||||
method {
|
method {
|
||||||
isUseLegacy = true
|
|
||||||
name = "setAppIcon"
|
name = "setAppIcon"
|
||||||
param(ImageViewClass, ExpandedNotificationClass.clazz)
|
param(ImageViewClass, ExpandedNotificationClass.clazz)
|
||||||
}
|
}.onFind { isUseLegacy = true }
|
||||||
}
|
}
|
||||||
replaceUnit {
|
replaceUnit {
|
||||||
if (isUseLegacy)
|
if (isUseLegacy)
|
||||||
|
Reference in New Issue
Block a user