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() } /**