From: luozheng <1732036298@qq.com> Date: Mon, 30 Sep 2024 01:45:39 +0000 (+0800) Subject: 解决,#883手表,闹钟响铃没有按照文档中设定40秒响铃,目前测试实际响铃50秒bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f6157e3418824b3930b8f31282c245c63dd938e0;p=mirrors%2FFD230.git 解决,#883手表,闹钟响铃没有按照文档中设定40秒响铃,目前测试实际响铃50秒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 dc5540376..d8170acde 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 = 50; + static int popalarm_time = 40; 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 @@ -211,7 +211,7 @@ namespace OHOS return; } g_alarmRing = nullptr; - popalarm_time = 50; + popalarm_time = 40; } break; default: