修复ble断连误关其他弹窗问题 1158/2 1158/head 1159/target/1
authorhcj <1224667075@qq.com>
Fri, 11 Oct 2024 06:46:59 +0000 (14:46 +0800)
committerhcj <1224667075@qq.com>
Fri, 11 Oct 2024 06:46:59 +0000 (14:46 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 32a47cd..79fb96e 100644 (file)
@@ -1049,7 +1049,7 @@ void MsgCenterNotifyCat1CallEndedProc(const Topic topic, Request* req)
    
     // just stop the notify
     AlarmClockModel::GetInstance()->AlarmPlayerStop();
-    
+
     if(!NotificationManager::GetInstance()->GetWatchCallStatus())
     {
         return;
@@ -1617,14 +1617,13 @@ void MsgCenterNotifybleTransmit(const Topic topic, Request* req)
     
     if(data[0]==TRANS_FREE)
     {
+        if(transmittingISShow())
         NotificationManager::GetInstance()->StopNotify();
     }
     else
     {
         set_transmittingShow_falg(data[0]);
         
-        // if(NotificationManager::GetInstance()->HasNotifyShowing())
-        // NotificationManager::GetInstance()->StopNotify();
 
         NotificationManager::GetInstance()->ShowNotify(showtransmitNotify, (uint16_t)topic, true);
     }