mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 18:55:25 +08:00
增加详细模块运行日志并改善 Hook 方案
This commit is contained in:
@@ -90,12 +90,8 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
private fun runWithoutError(error: String = "", it: () -> Unit) {
|
private fun runWithoutError(error: String = "", it: () -> Unit) {
|
||||||
try {
|
try {
|
||||||
it()
|
it()
|
||||||
} catch (e: Error) {
|
|
||||||
logE("hookFailed: $error", e)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
logE("hookFailed: $error", e)
|
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
logE("hookFailed: $error", e)
|
logE(content = "hookFailed: $error", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user