From: luozheng <1732036298@qq.com> Date: Tue, 10 Sep 2024 12:41:53 +0000 (+0800) Subject: #534,解决闹钟设置多个闹钟,只响第一个,后续的没有提示闹钟bug X-Git-Tag: release_V1.2.70_20241020_135402~485^2^2~23 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F938%2F1;p=mirrors%2FFD230.git #534,解决闹钟设置多个闹钟,只响第一个,后续的没有提示闹钟bug --- 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 23bfa9e93..db4838da5 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 @@ -26,7 +26,7 @@ namespace OHOS constexpr int32_t NOTIFY_ONE_SECOND = 1000; constexpr int32_t NOTIFY_THIRTY_SECONDS = 30 * 1000; // 30秒 constexpr int32_t NOTIFY_ONE_MINUTE = 60 * 1000; - static int popalarm_time = 60; + static int popalarm_time = 50; constexpr int32_t NOTOFY_NO_OPERATE_TIME = 30 * 1000; // 无操作30s超时时间 osTimerId_t g_notifyStopHandle = nullptr; // timer of close view and alarm ring view osTimerId_t g_alarmRing = nullptr; // timer of alarm view @@ -215,7 +215,7 @@ namespace OHOS return; } g_alarmRing = nullptr; - popalarm_time = 60; + popalarm_time = 50; } break; default: