From 2af07f29fa8e0427eda1daa42f3a0f058e8792b3 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 28 Nov 2024 10:30:17 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E9=97=B9=E9=92=9F=E5=BC=B9?= =?utf8?q?=E7=AA=97=E4=B8=8D=E4=BA=AE=E5=B1=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/msg_center/src/notify/alarm_notification.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp index 0abbaf0f8..b24132c0f 100755 --- a/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp @@ -19,6 +19,7 @@ #include "ConfigModel.h" #include #include "../../../../../../drivers/peripheral/vibrator/service/vibrator_service.h" +#include namespace OHOS { static constexpr const char *RING_AGAIN = "响铃将在十分钟后再次响起"; @@ -503,6 +504,7 @@ namespace OHOS g_alarmView->Add(g_StopBtn); /* -------------------------------------------------------------------------- */ StartAlarmTimer(AlarmTimerType::NOTIFY_ALARM_RING, NOTIFY_ONE_SECOND); + ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); } NotificationManager::GetInstance()->RegisterNotifyCleanupFunction(FreeAlarmView); return g_alarmView; @@ -542,6 +544,7 @@ namespace OHOS RootView::GetInstance()->Remove(g_alarmView); delete g_alarmView; g_alarmView = nullptr; + ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FreeAlarmView over!!"); } } -- 2.17.1