From aa651ec346568539de339bd6617d103bda8a9d6e Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Mon, 1 Aug 2022 23:07:53 +0800 Subject: [PATCH] Modify make sweet logger to yLogger --- .../yukihookapi/hook/xposed/channel/YukiHookDataChannel.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel.kt index 3d3b191c..681aeda3 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel.kt @@ -40,9 +40,8 @@ import android.content.IntentFilter import android.os.Bundle import android.os.Parcelable import com.highcapable.yukihookapi.YukiHookAPI -import com.highcapable.yukihookapi.hook.log.loggerE -import com.highcapable.yukihookapi.hook.log.loggerW import com.highcapable.yukihookapi.hook.log.yLoggerE +import com.highcapable.yukihookapi.hook.log.yLoggerW import com.highcapable.yukihookapi.hook.xposed.application.ModuleApplication import com.highcapable.yukihookapi.hook.xposed.bridge.YukiHookBridge import com.highcapable.yukihookapi.hook.xposed.channel.data.ChannelData @@ -116,7 +115,7 @@ class YukiHookDataChannel private constructor() { destroyedCallbacks.takeIf { it.isNotEmpty() }?.forEach { remove(it) } } } - }.onFailure { loggerE(msg = "Received action \"$action\" failed", e = it) } + }.onFailure { yLoggerE(msg = "Received action \"$action\" failed", e = it) } } } } @@ -138,7 +137,7 @@ class YukiHookDataChannel private constructor() { isXposedEnvironment || (((context ?: receiverContext) ?.getSystemService(ACTIVITY_SERVICE) as? ActivityManager?) ?.getRunningTasks(9999)?.filter { context?.javaClass?.name == it?.topActivity?.className }?.size ?: 0) > 0 - }.getOrNull() ?: loggerW(msg = "Couldn't got current Activity status because a SecurityException blocked it").let { false } + }.getOrNull() ?: yLoggerW(msg = "Couldn't got current Activity status because a SecurityException blocked it").let { false } /** * 获取宿主广播 Action 名称