From ccf343f7f8546ec1dc9a8bfd7b3c413d64d496f5 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 9 Jul 2024 14:14:55 +0800 Subject: [PATCH] =?utf8?q?=E7=9D=A1=E7=9C=A0=E6=A8=A1=E5=BC=8F=E7=9A=84?= =?utf8?q?=E5=8B=BF=E6=89=B0=E5=B0=86=E5=9C=A8=E5=A4=96=E9=83=A8=E8=AE=BE?= =?utf8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/msg_center/src/notify/sleep_notification.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.17.1