From: luozheng <1732036298@qq.com> Date: Sat, 12 Oct 2024 11:13:58 +0000 (+0800) Subject: 运动识别添加设置弹窗优先级 X-Git-Tag: release_V1.2.70_20241020_135402~63 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1172%2Fhead;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 0b3241acf..2b3c7a4a7 100644 --- 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 @@ -1261,6 +1261,10 @@ void MsgCenterNotifyFindWatchProc(const Topic topic, Request* req) NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showFindWatchNotify, (uint16_t)topic, true); } + else + { + WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "NotifyPriority = %d ",NotificationManager::GetInstance()->GetNotifyPriority()); + } } //取消查找手表通知 @@ -1394,6 +1398,7 @@ void MsgCenterNotifyArAlertProc(const Topic topic, Request* req) if (CheckPriority(topic)) { MotionRecognitionViewEventListener::GetInstance().SetMotionTypeId(*motionType); + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showMotionRecognitionNotify, (uint16_t)topic, true); }