From cd60ec7ac4eb31afa8f1e7790c850b3f8415e4b5 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Tue, 1 Feb 2022 23:16:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- app/src/main/java/com/fankes/miui/notify/hook/HookMain.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a136136..a9e6747 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,8 +21,8 @@ android { applicationId "com.fankes.miui.notify" minSdk 26 targetSdk 26 - versionCode 2 - versionName "1.1" + versionCode 3 + versionName "1.15" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/fankes/miui/notify/hook/HookMain.kt b/app/src/main/java/com/fankes/miui/notify/hook/HookMain.kt index 430cead..4784896 100644 --- a/app/src/main/java/com/fankes/miui/notify/hook/HookMain.kt +++ b/app/src/main/java/com/fankes/miui/notify/hook/HookMain.kt @@ -101,10 +101,10 @@ class HookMain : IXposedHookLoadPackage { * @param it 继续执行的方法 */ private fun logD(content: String, it: () -> Unit = {}) { + it() if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return XposedBridge.log("[MIUINativeNotifyIcon][D]>$content") Log.d("MIUINativeNotifyIcon", content) - it() } /** @@ -113,10 +113,10 @@ class HookMain : IXposedHookLoadPackage { * @param it 继续执行的方法 */ private fun logW(content: String, it: () -> Unit = {}) { + it() if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return XposedBridge.log("[MIUINativeNotifyIcon][W]>$content") Log.d("MIUINativeNotifyIcon", content) - it() } /** @@ -126,10 +126,10 @@ class HookMain : IXposedHookLoadPackage { * @param it 继续执行的方法 */ private fun logE(content: String, e: Throwable? = null, it: () -> Unit = {}) { + it() XposedBridge.log("[MIUINativeNotifyIcon][E]>$content") XposedBridge.log(e) Log.e("MIUINativeNotifyIcon", content, e) - it() } /**