diff --git a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt index b898ce5..fde2839 100644 --- a/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt @@ -683,8 +683,9 @@ object SystemUIHooker : YukiBaseHooker() { }.get(this).any()?.also { isExpanded = ExpandableNotificationRowClass.method { name = "isExpanded" + param(BooleanType) returnType = BooleanType - }.get(it).boolean() + }.get(it).boolean(false) } return Pair(isExpanded, row) } @@ -698,8 +699,8 @@ object SystemUIHooker : YukiBaseHooker() { .method { name = "getEntry" } .get(this).call() ?.current(ignored = true) - ?.method { name = "getSbn" } - ?.invoke() + ?.field { name = "mSbn" } + ?.cast() ?: ExpandableNotificationRowClass .method { name = "getStatusBarNotification" } .get(this).invoke()