mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 10:45:20 +08:00
Merge code
This commit is contained in:
@@ -364,13 +364,16 @@ object IconRuleManagerTool {
|
|||||||
*/
|
*/
|
||||||
fun refreshSystemUI(context: Context) {
|
fun refreshSystemUI(context: Context) {
|
||||||
if (context !is AppCompatActivity) return
|
if (context !is AppCompatActivity) return
|
||||||
if (isNotNoificationEnabled) context.showDialog {
|
if (isNotNoificationEnabled)
|
||||||
|
context.showDialog {
|
||||||
title = "模块的通知权限已关闭"
|
title = "模块的通知权限已关闭"
|
||||||
msg = "请开启通知权限然后重启系统界面,否则无法动态刷新系统界面使更改生效。"
|
msg = "请开启通知权限然后重启系统界面,否则无法动态刷新系统界面使更改生效。"
|
||||||
confirmButton { context.openNotifySetting() }
|
confirmButton { context.openNotifySetting() }
|
||||||
cancelButton()
|
cancelButton()
|
||||||
noCancelable()
|
noCancelable()
|
||||||
} else context.showDialog {
|
}
|
||||||
|
else
|
||||||
|
context.showDialog {
|
||||||
title = "请稍后"
|
title = "请稍后"
|
||||||
progressContent = "正在刷新系统界面改变"
|
progressContent = "正在刷新系统界面改变"
|
||||||
/** 发送通知提醒宿主更新图标缓存 */
|
/** 发送通知提醒宿主更新图标缓存 */
|
||||||
|
Reference in New Issue
Block a user