去除电话误设的NOtif优先级,避免误拦截其余NOTIF 1171/3
authorhcj <1224667075@qq.com>
Sat, 12 Oct 2024 11:14:13 +0000 (19:14 +0800)
committerhcj <1224667075@qq.com>
Sat, 12 Oct 2024 11:14:13 +0000 (19:14 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 3c0d04a..259ccb7 100644 (file)
@@ -916,7 +916,7 @@ void MsgCenterNotifyCatIncomingCallProc(const Topic topic, Request* req)
         CallerLogModel::GetInstance()->SetoperateNumber(call_data,strlen(call_data));
         CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourceCat1);
          NotificationManager::GetInstance()->SetWatchCallStatus(true);
-        NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
+        // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
         cat1_phone_state_change_cb(OPERATE_INCOMING);
        
     }
@@ -937,7 +937,7 @@ void MsgCenterNotifyCat1CallConnectedProc(const Topic topic, Request* req)
     SetMicMute(false);
     AlarmClockModel::GetInstance()->AlarmPlayerStop();
     //AlarmViewEventListener::GetInstance()->CancelAlarmRing();
-    NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
+    // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
     cat1_phone_state_change_cb(OPERATE_WATCH_ACTIVE);
     CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourceCat1);
     NotificationManager::GetInstance()->SetWatchCallStatus(true);
@@ -1547,7 +1547,7 @@ void MsgCenterNotifybleTransmit(const Topic topic, Request* req)
 {
     unused(topic);
     uint8_t* data=(uint8_t*)req->data;
-    NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
+   
     
     if(data[0]==TRANS_FREE)
     {
@@ -1558,6 +1558,7 @@ void MsgCenterNotifybleTransmit(const Topic topic, Request* req)
     {
         set_transmittingShow_falg(data[0]);
         
+        NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
 
         NotificationManager::GetInstance()->ShowNotify(showtransmitNotify, (uint16_t)topic, true);
     }