File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/src/main/java/com/fankes/coloros/notify/hook/entity Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ import com.fankes.coloros.notify.utils.tool.ActivationPromptTool
6868import com.fankes.coloros.notify.utils.tool.BitmapCompatTool
6969import com.fankes.coloros.notify.utils.tool.IconAdaptationTool
7070import com.fankes.coloros.notify.utils.tool.SystemUITool
71+ import com.highcapable.kavaref.KavaRef.Companion.asResolver
7172import com.highcapable.kavaref.KavaRef.Companion.resolve
7273import com.highcapable.kavaref.condition.type.VagueType
7374import com.highcapable.kavaref.extension.VariousClass
@@ -363,7 +364,7 @@ object SystemUIHooker : YukiBaseHooker() {
363364
364365 /* * 刷新通知小图标 */
365366 private fun refreshNotificationIcons () = runInSafe {
366- notificationPresenter?.resolve ()?.optional()?.firstMethodOrNull {
367+ notificationPresenter?.asResolver ()?.optional()?.firstMethodOrNull {
367368 name = " updateNotificationsOnDensityOrFontScaleChanged"
368369 emptyParameters()
369370 }?.invoke()
@@ -886,7 +887,7 @@ object SystemUIHooker : YukiBaseHooker() {
886887 ?.of(NotificationViewWrapperClass .resolve().optional().firstFieldOrNull {
887888 name = " mRow"
888889 }?.of(instance)?.get())?.invokeQuietly()?.let {
889- it.resolve ().optional().firstMethodOrNull {
890+ it.asResolver ().optional().firstMethodOrNull {
890891 name = " getSbn"
891892 }?.invoke<StatusBarNotification >()
892893 }.also { nf ->
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ libraries:
4848 version-ref : <this>::api
4949 com.highcapable.kavaref :
5050 kavaref-core :
51- version : 1.0.0
51+ version : 1.0.1
5252 kavaref-extension :
53- version : 1.0.0
53+ version : 1.0.1
5454 com.github.topjohnwu.libsu :
5555 core :
5656 version : 5.2.2
You can’t perform that action at this time.
0 commit comments