From: SnickerSun Date: Sat, 30 Mar 2024 08:54:57 +0000 (+0800) Subject: 修复电量过低无法重复显示问题 X-Git-Tag: release_V1.2.70_20241020_135402~1241^2~6^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ad451852225abf9f7e7769804913e7919c8974f5;p=mirrors%2FFD230.git 修复电量过低无法重复显示问题 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index 772cacc89..5c6311f0f 100755 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -1,4 +1,4 @@ -/* +/*, * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. * Description: broadcast feature implement * Author: CompanyName @@ -276,6 +276,8 @@ void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req) { //提醒低电充电 set_lowpower_falg(false); + if (NotificationManager::GetInstance()->hasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); } @@ -283,6 +285,8 @@ void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req) { //电量过低,直接提醒关机 set_lowpower_falg(true); + if (NotificationManager::GetInstance()->hasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true);