mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-06 10:45:53 +08:00
Update YukiHookAPI
This commit is contained in:
@@ -72,8 +72,8 @@ tasks.whenTaskAdded {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'de.robv.android.xposed:api:82'
|
compileOnly 'de.robv.android.xposed:api:82'
|
||||||
implementation 'com.highcapable.yukihookapi:api:1.0.73'
|
implementation 'com.highcapable.yukihookapi:api:1.0.75'
|
||||||
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.73'
|
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.75'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
||||||
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.0'
|
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.0'
|
||||||
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.0'
|
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.0'
|
||||||
|
@@ -175,11 +175,11 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
}
|
}
|
||||||
beforeHook {
|
beforeHook {
|
||||||
if (prefs.get(DataConst.ENABLE_NOTIFY_TIP))
|
if (prefs.get(DataConst.ENABLE_NOTIFY_TIP))
|
||||||
when (firstArgs<CharSequence>()) {
|
when (args().first().cast<CharSequence>()) {
|
||||||
"QQ正在后台运行" ->
|
"QQ正在后台运行" ->
|
||||||
args().set("QQ正在后台运行 - TSBattery 守护中")
|
args().first().set("QQ正在后台运行 - TSBattery 守护中")
|
||||||
"TIM正在后台运行" ->
|
"TIM正在后台运行" ->
|
||||||
args().set("TIM正在后台运行 - TSBattery 守护中")
|
args().first().set("TIM正在后台运行 - TSBattery 守护中")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user