解决,#883手表,闹钟响铃没有按照文档中设定40秒响铃,目前测试实际响铃50秒bug
authorluozheng <1732036298@qq.com>
Mon, 30 Sep 2024 01:45:39 +0000 (09:45 +0800)
committerluozheng <1732036298@qq.com>
Mon, 30 Sep 2024 01:45:39 +0000 (09:45 +0800)
code/sdk/application/wearable/service/msg_center/src/notify/alarm_notification.cpp

index dc55403..d8170ac 100755 (executable)
@@ -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: