mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-05 18:25:23 +08:00
Fix notification icon problem in MIUI 14 DEV version in SystemUIHooker
This commit is contained in:
@@ -752,9 +752,9 @@ object SystemUIHooker : YukiBaseHooker() {
|
|||||||
/** 强制回写系统的状态栏图标样式为原生 */
|
/** 强制回写系统的状态栏图标样式为原生 */
|
||||||
injectMember {
|
injectMember {
|
||||||
method {
|
method {
|
||||||
name = "shouldSubstituteSmallIcon"
|
name { it == "shouldSubstituteSmallIcon" || it == "shouldSubstituteSmallIconForStatusBarNotification" }
|
||||||
param(ExpandedNotificationClass)
|
param { it[0] extends StatusBarNotificationClass }
|
||||||
}
|
}.all()
|
||||||
replaceToFalse()
|
replaceToFalse()
|
||||||
}
|
}
|
||||||
/** 强制回写系统的状态栏图标样式为原生 */
|
/** 强制回写系统的状态栏图标样式为原生 */
|
||||||
@@ -762,7 +762,7 @@ object SystemUIHooker : YukiBaseHooker() {
|
|||||||
var isUseLegacy = false
|
var isUseLegacy = false
|
||||||
method {
|
method {
|
||||||
name = "getSmallIcon"
|
name = "getSmallIcon"
|
||||||
param(ExpandedNotificationClass, IntType)
|
param { it[0] extends StatusBarNotificationClass && it[1] == IntType }
|
||||||
}.remedys {
|
}.remedys {
|
||||||
method {
|
method {
|
||||||
name = "getSmallIcon"
|
name = "getSmallIcon"
|
||||||
|
Reference in New Issue
Block a user