修复无法退出BUG 659/2 659/head
authorhcj <1224667075@qq.com>
Wed, 7 Aug 2024 09:19:09 +0000 (17:19 +0800)
committerhcj <1224667075@qq.com>
Wed, 7 Aug 2024 09:19:09 +0000 (17:19 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 734d2ef..da2f6d6 100644 (file)
@@ -785,13 +785,15 @@ void MsgCenterNotifyCat1CallConnectedProc(const Topic topic, Request* req)
     {
         return;
     }
+    SetMicMute(false);
     AlarmClockModel::GetInstance()->AlarmPlayerStop();
     NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
     //CallerLogModel::GetInstance()->SetNotifyFlag(true);
+
     cat1_phone_state_change_cb(OPERATE_WATCH_ACTIVE);
     //NotificationManager::GetInstance()->ShowNotify(CreateCallingView, (uint16_t)topic, true);
     CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourceCat1);
-    NotificationManager::GetInstance()->SetWatchCallStatus(false);
+    NotificationManager::GetInstance()->SetWatchCallStatus(true);
     
 
 }
@@ -842,8 +844,13 @@ void MsgCenterNotifyCat1CallEndedProc(const Topic topic, Request* req)
     unused(req);
     // just stop the notify
     AlarmClockModel::GetInstance()->AlarmPlayerStop();
+    if(!NotificationManager::GetInstance()->GetWatchCallStatus())
+    {
+        return;
+    }
     cat1_phone_state_change_cb(OPERATE_WATCH_FINISH);
     
+    SetMicMute(false);
     // if (CallerLogModel::GetInstance()->GetNotifyFlag() == true) {
     //     NotificationManager::GetInstance()->StopNotify();
     //     addcalllog();