mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-08 03:24:17 +08:00
默认关闭模块调试日志输出
This commit is contained in:
@@ -102,7 +102,7 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
*/
|
*/
|
||||||
private fun logD(content: String, it: () -> Unit = {}) {
|
private fun logD(content: String, it: () -> Unit = {}) {
|
||||||
it()
|
it()
|
||||||
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = false)) return
|
||||||
XposedBridge.log("[MIUINativeNotifyIcon][D]>$content")
|
XposedBridge.log("[MIUINativeNotifyIcon][D]>$content")
|
||||||
Log.d("MIUINativeNotifyIcon", content)
|
Log.d("MIUINativeNotifyIcon", content)
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@ class HookMain : IXposedHookLoadPackage {
|
|||||||
*/
|
*/
|
||||||
private fun logW(content: String, it: () -> Unit = {}) {
|
private fun logW(content: String, it: () -> Unit = {}) {
|
||||||
it()
|
it()
|
||||||
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)) return
|
if (!HookMedium.getBoolean(HookMedium.ENABLE_MODULE_LOG, default = false)) return
|
||||||
XposedBridge.log("[MIUINativeNotifyIcon][W]>$content")
|
XposedBridge.log("[MIUINativeNotifyIcon][W]>$content")
|
||||||
Log.d("MIUINativeNotifyIcon", content)
|
Log.d("MIUINativeNotifyIcon", content)
|
||||||
}
|
}
|
||||||
|
@@ -101,7 +101,7 @@ class MainActivity : BaseActivity() {
|
|||||||
notifyIconConfigItem.isVisible = getBoolean(HookMedium.ENABLE_COLOR_ICON_HOOK, default = true)
|
notifyIconConfigItem.isVisible = getBoolean(HookMedium.ENABLE_COLOR_ICON_HOOK, default = true)
|
||||||
moduleEnableLogSwitch.isVisible = getBoolean(HookMedium.ENABLE_MODULE, default = true)
|
moduleEnableLogSwitch.isVisible = getBoolean(HookMedium.ENABLE_MODULE, default = true)
|
||||||
moduleEnableSwitch.isChecked = getBoolean(HookMedium.ENABLE_MODULE, default = true)
|
moduleEnableSwitch.isChecked = getBoolean(HookMedium.ENABLE_MODULE, default = true)
|
||||||
moduleEnableLogSwitch.isChecked = getBoolean(HookMedium.ENABLE_MODULE_LOG, default = true)
|
moduleEnableLogSwitch.isChecked = getBoolean(HookMedium.ENABLE_MODULE_LOG, default = false)
|
||||||
hideIconInLauncherSwitch.isChecked = getBoolean(HookMedium.ENABLE_HIDE_ICON)
|
hideIconInLauncherSwitch.isChecked = getBoolean(HookMedium.ENABLE_HIDE_ICON)
|
||||||
colorIconHookSwitch.isChecked = getBoolean(HookMedium.ENABLE_COLOR_ICON_HOOK, default = true)
|
colorIconHookSwitch.isChecked = getBoolean(HookMedium.ENABLE_COLOR_ICON_HOOK, default = true)
|
||||||
notifyIconHookSwitch.isChecked = getBoolean(HookMedium.ENABLE_NOTIFY_ICON_HOOK, default = true)
|
notifyIconHookSwitch.isChecked = getBoolean(HookMedium.ENABLE_NOTIFY_ICON_HOOK, default = true)
|
||||||
|
Reference in New Issue
Block a user