mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 18:55:25 +08:00
Merge code
This commit is contained in:
@@ -44,7 +44,6 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onHook() = encase {
|
override fun onHook() = encase {
|
||||||
loadApp(SYSTEMUI_PACKAGE_NAME) {
|
|
||||||
when {
|
when {
|
||||||
/** 不是 MIUI 系统停止 Hook */
|
/** 不是 MIUI 系统停止 Hook */
|
||||||
isNotMIUI -> loggerW(msg = "Aborted Hook -> This System is not MIUI")
|
isNotMIUI -> loggerW(msg = "Aborted Hook -> This System is not MIUI")
|
||||||
@@ -55,8 +54,7 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
/** Hook 被手动关闭停止 Hook */
|
/** Hook 被手动关闭停止 Hook */
|
||||||
prefs.get(DataConst.ENABLE_MODULE).not() -> loggerW(msg = "Aborted Hook -> Hook Closed")
|
prefs.get(DataConst.ENABLE_MODULE).not() -> loggerW(msg = "Aborted Hook -> Hook Closed")
|
||||||
/** 开始 Hook */
|
/** 开始 Hook */
|
||||||
else -> loadHooker(SystemUIHooker())
|
else -> loadApp(SYSTEMUI_PACKAGE_NAME, SystemUIHooker())
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user