Update YukiHookAPI

This commit is contained in:
2022-04-13 04:42:25 +08:00
parent c8ec50cb29
commit d1e4c17817
2 changed files with 5 additions and 5 deletions

View File

@@ -72,8 +72,8 @@ tasks.whenTaskAdded {
dependencies {
compileOnly 'de.robv.android.xposed:api:82'
implementation 'com.highcapable.yukihookapi:api:1.0.73'
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.73'
implementation 'com.highcapable.yukihookapi:api:1.0.75'
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.75'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.0'
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.0'

View File

@@ -175,11 +175,11 @@ class HookEntry : YukiHookXposedInitProxy {
}
beforeHook {
if (prefs.get(DataConst.ENABLE_NOTIFY_TIP))
when (firstArgs<CharSequence>()) {
when (args().first().cast<CharSequence>()) {
"QQ正在后台运行" ->
args().set("QQ正在后台运行 - TSBattery 守护中")
args().first().set("QQ正在后台运行 - TSBattery 守护中")
"TIM正在后台运行" ->
args().set("TIM正在后台运行 - TSBattery 守护中")
args().first().set("TIM正在后台运行 - TSBattery 守护中")
}
}
}