修复一个执行顺序问题

This commit is contained in:
2022-02-01 23:16:04 +08:00
parent 4129794bbb
commit cd60ec7ac4
2 changed files with 5 additions and 5 deletions

View File

@@ -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"
}

View File

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