From a915308b8c4af0bf0fe692e45b02671e240a6229 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 12 Oct 2024 19:14:13 +0800 Subject: [PATCH] =?utf8?q?=E5=8E=BB=E9=99=A4=E7=94=B5=E8=AF=9D=E8=AF=AF?= =?utf8?q?=E8=AE=BE=E7=9A=84NOtif=E4=BC=98=E5=85=88=E7=BA=A7=EF=BC=8C?= =?utf8?q?=E9=81=BF=E5=85=8D=E8=AF=AF=E6=8B=A6=E6=88=AA=E5=85=B6=E4=BD=99N?= =?utf8?q?OTIF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/msg_center/src/msg_center_customer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 3c0d04a6a..259ccb7d1 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 @@ -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); } -- 2.17.1