Skip to content

Commit 95db227

Browse files
committed
fix: add superclass checks for method and field resolution in SystemUIHooker
1 parent 27328aa commit 95db227

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,12 @@ object SystemUIHooker : YukiBaseHooker() {
866866
val mBase = instance.asResolver().optional().firstMethodOrNull {
867867
name = "getBase"
868868
emptyParameters()
869+
superclass()
869870
}?.invokeQuietly()
870871
val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull {
871872
name = "mIcon"
872873
type = ImageView::class
874+
superclass()
873875
}?.getQuietly<ImageView>()
874876
imageView?.apply {
875877
ExpandableNotificationRowClass.resolve().optional()

0 commit comments

Comments
 (0)