mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
修复一个执行顺序问题
This commit is contained in:
@@ -21,8 +21,8 @@ android {
|
|||||||
applicationId "com.fankes.miui.notify"
|
applicationId "com.fankes.miui.notify"
|
||||||
minSdk 26
|
minSdk 26
|
||||||
targetSdk 26
|
targetSdk 26
|
||||||
versionCode 2
|
versionCode 3
|
||||||
versionName "1.1"
|
versionName "1.15"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
@@ -101,10 +101,10 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
* @param it 继续执行的方法
|
* @param it 继续执行的方法
|
||||||
*/
|
*/
|
||||||
private fun logD(content: String, it: () -> Unit = {}) {
|
private fun logD(content: String, it: () -> Unit = {}) {
|
||||||
|
it()
|
||||||
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
||||||
XposedBridge.log("[MIUINativeNotifyIcon][D]>$content")
|
XposedBridge.log("[MIUINativeNotifyIcon][D]>$content")
|
||||||
Log.d("MIUINativeNotifyIcon", content)
|
Log.d("MIUINativeNotifyIcon", content)
|
||||||
it()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -113,10 +113,10 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
* @param it 继续执行的方法
|
* @param it 继续执行的方法
|
||||||
*/
|
*/
|
||||||
private fun logW(content: String, it: () -> Unit = {}) {
|
private fun logW(content: String, it: () -> Unit = {}) {
|
||||||
|
it()
|
||||||
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
||||||
XposedBridge.log("[MIUINativeNotifyIcon][W]>$content")
|
XposedBridge.log("[MIUINativeNotifyIcon][W]>$content")
|
||||||
Log.d("MIUINativeNotifyIcon", content)
|
Log.d("MIUINativeNotifyIcon", content)
|
||||||
it()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -126,10 +126,10 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
* @param it 继续执行的方法
|
* @param it 继续执行的方法
|
||||||
*/
|
*/
|
||||||
private fun logE(content: String, e: Throwable? = null, it: () -> Unit = {}) {
|
private fun logE(content: String, e: Throwable? = null, it: () -> Unit = {}) {
|
||||||
|
it()
|
||||||
XposedBridge.log("[MIUINativeNotifyIcon][E]>$content")
|
XposedBridge.log("[MIUINativeNotifyIcon][E]>$content")
|
||||||
XposedBridge.log(e)
|
XposedBridge.log(e)
|
||||||
Log.e("MIUINativeNotifyIcon", content, e)
|
Log.e("MIUINativeNotifyIcon", content, e)
|
||||||
it()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user