运动识别添加设置弹窗优先级 1172/2 1172/head
authorluozheng <1732036298@qq.com>
Sat, 12 Oct 2024 11:13:58 +0000 (19:13 +0800)
committerluozheng <1732036298@qq.com>
Sat, 12 Oct 2024 11:13:58 +0000 (19:13 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 0b3241a..2b3c7a4 100644 (file)
@@ -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);
     }