mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
Merge code
This commit is contained in:
@@ -105,16 +105,15 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
}
|
}
|
||||||
/** 判断是否 Hook */
|
/** 判断是否 Hook */
|
||||||
isXposedModuleActive -> {
|
isXposedModuleActive -> {
|
||||||
if (IconPackParams(context = this).iconDatas.isEmpty()
|
if (IconPackParams(context = this).iconDatas.isEmpty() && modulePrefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX))
|
||||||
&& modulePrefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX)
|
showDialog {
|
||||||
) showDialog {
|
title = "配置通知图标优化名单"
|
||||||
title = "配置通知图标优化名单"
|
msg = "模块需要获取在线规则以更新“通知图标优化名单”,它现在是空的,这看起来是你第一次使用模块,请首先进行配置才可以使用相关功能。\n" +
|
||||||
msg = "模块需要获取在线规则以更新“通知图标优化名单”,它现在是空的,这看起来是你第一次使用模块,请首先进行配置才可以使用相关功能。\n" +
|
"你可以随时在本页面下方找到“配置通知图标优化名单”手动前往。"
|
||||||
"你可以随时在本页面下方找到“配置通知图标优化名单”手动前往。"
|
confirmButton(text = "前往") { navigate<ConfigureActivity>() }
|
||||||
confirmButton(text = "前往") { navigate<ConfigureActivity>() }
|
cancelButton()
|
||||||
cancelButton()
|
noCancelable()
|
||||||
noCancelable()
|
}
|
||||||
}
|
|
||||||
if (isNotNoificationEnabled && modulePrefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX))
|
if (isNotNoificationEnabled && modulePrefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX))
|
||||||
showDialog {
|
showDialog {
|
||||||
title = "模块的通知权限已关闭"
|
title = "模块的通知权限已关闭"
|
||||||
|
Reference in New Issue
Block a user