mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-05 18:25:23 +08:00
fix: ExpandableNotificationRow on A14 and HyperOS
This commit is contained in:
@@ -683,8 +683,9 @@ object SystemUIHooker : YukiBaseHooker() {
|
|||||||
}.get(this).any()?.also {
|
}.get(this).any()?.also {
|
||||||
isExpanded = ExpandableNotificationRowClass.method {
|
isExpanded = ExpandableNotificationRowClass.method {
|
||||||
name = "isExpanded"
|
name = "isExpanded"
|
||||||
|
param(BooleanType)
|
||||||
returnType = BooleanType
|
returnType = BooleanType
|
||||||
}.get(it).boolean()
|
}.get(it).boolean(false)
|
||||||
}
|
}
|
||||||
return Pair(isExpanded, row)
|
return Pair(isExpanded, row)
|
||||||
}
|
}
|
||||||
@@ -698,8 +699,8 @@ object SystemUIHooker : YukiBaseHooker() {
|
|||||||
.method { name = "getEntry" }
|
.method { name = "getEntry" }
|
||||||
.get(this).call()
|
.get(this).call()
|
||||||
?.current(ignored = true)
|
?.current(ignored = true)
|
||||||
?.method { name = "getSbn" }
|
?.field { name = "mSbn" }
|
||||||
?.invoke<StatusBarNotification>()
|
?.cast<StatusBarNotification>()
|
||||||
?: ExpandableNotificationRowClass
|
?: ExpandableNotificationRowClass
|
||||||
.method { name = "getStatusBarNotification" }
|
.method { name = "getStatusBarNotification" }
|
||||||
.get(this).invoke<StatusBarNotification>()
|
.get(this).invoke<StatusBarNotification>()
|
||||||
|
Reference in New Issue
Block a user