fix: add superclass checks for method and field resolution in SystemUIHooker

This commit is contained in:
2025-12-07 04:16:12 +08:00
parent 29fffdba46
commit 247f5c7da5

View File

@@ -866,10 +866,12 @@ object SystemUIHooker : YukiBaseHooker() {
val mBase = instance.asResolver().optional().firstMethodOrNull {
name = "getBase"
emptyParameters()
superclass()
}?.invokeQuietly()
val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull {
name = "mIcon"
type = ImageView::class
superclass()
}?.getQuietly<ImageView>()
imageView?.apply {
ExpandableNotificationRowClass.resolve().optional()