From 7b8fbcd81a61b3effe5aebebcc511f31bb92ff37 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 7 Aug 2024 17:19:09 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E9=80=80?= =?utf8?q?=E5=87=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/msg_center/src/msg_center_customer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 734d2ef31..da2f6d624 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 @@ -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(); -- 2.17.1