mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-12-10 15:53:49 +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 {
|
val mBase = instance.asResolver().optional().firstMethodOrNull {
|
||||||
name = "getBase"
|
name = "getBase"
|
||||||
emptyParameters()
|
emptyParameters()
|
||||||
|
superclass()
|
||||||
}?.invokeQuietly()
|
}?.invokeQuietly()
|
||||||
val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull {
|
val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull {
|
||||||
name = "mIcon"
|
name = "mIcon"
|
||||||
type = ImageView::class
|
type = ImageView::class
|
||||||
|
superclass()
|
||||||
}?.getQuietly<ImageView>()
|
}?.getQuietly<ImageView>()
|
||||||
imageView?.apply {
|
imageView?.apply {
|
||||||
ExpandableNotificationRowClass.resolve().optional()
|
ExpandableNotificationRowClass.resolve().optional()
|
||||||
|
|||||||
Reference in New Issue
Block a user