mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-12-08 06:33:47 +08:00
fix: add superclass checks for method and field resolution in SystemUIHooker
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user