From: Caisking <3449750381@qq.com> Date: Tue, 9 Jul 2024 06:14:55 +0000 (+0800) Subject: 睡眠模式的勿扰将在外部设置 X-Git-Tag: release_V1.2.70_20241020_135402~828^2~11^2~4 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ccf343f7f8546ec1dc9a8bfd7b3c413d64d496f5;p=mirrors%2FFD230.git 睡眠模式的勿扰将在外部设置 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp index 4b65b8bef..292d68c5f 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp @@ -46,7 +46,7 @@ namespace OHOS /* -------------------------------------------------------------------------- */ - /*创建信息弹窗*/ + /*创建睡眠弹窗*/ UIViewGroup *CreateSleepNotifyView(void) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CreateSleepNotifyView"); @@ -78,13 +78,11 @@ namespace OHOS break; case SLEEPSTATE::SLEPP: titleStr = SleepModel::GetInstance().get_sleep_notifiy(); - textId = STR_DISTURBNOTE; // 开启勿扰 - ConfigModel::GetInstance()->SetDnotdisturb(true); + textId = STR_DISTURBNOTE; break; case SLEEPSTATE::WAKE: titleStr = SleepModel::GetInstance().get_wake_notifiy(); textId = STR_MORNNING; - ConfigModel::GetInstance()->SetDnotdisturb(false); // 关闭勿扰 SetAlarmClockView(); // 设置为早安视图 SleepViewEventListener::GetInstance().PopInterPlayMusic(); NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);