睡眠模式的勿扰将在外部设置
authorCaisking <3449750381@qq.com>
Tue, 9 Jul 2024 06:14:55 +0000 (14:14 +0800)
committerCaisking <3449750381@qq.com>
Tue, 9 Jul 2024 06:14:55 +0000 (14:14 +0800)
code/sdk/application/wearable/service/msg_center/src/notify/sleep_notification.cpp

index 4b65b8b..292d68c 100644 (file)
@@ -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);