From 5ac3972133b8007985f6f4d26a7cb7c8f22d2bea Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Fri, 22 Nov 2024 15:19:30 +0800 Subject: [PATCH] =?utf8?q?=E9=9D=9E4G=E7=94=B5=E8=AF=9D=E7=95=8C=E9=9D=A2?= =?utf8?q?=E7=BB=93=E6=9D=9F4G=E7=94=B5=E8=AF=9D=E5=9C=BA=E6=99=AF?= =?utf8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/notify/makephone_notification.cpp | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/makephone_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/makephone_notification.cpp index 12556026a..6d8d8b395 100755 --- a/code/sdk/application/wearable/service/msg_center/src/notify/makephone_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/makephone_notification.cpp @@ -681,6 +681,8 @@ static void WatchFinishHandle(void) { if (NotificationManager::GetInstance()->GetWatchCallStatus()) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GetWatchCallStatus !!"); + if(get_falg_SOS()) { addcalllog(); @@ -688,14 +690,18 @@ static void WatchFinishHandle(void) } else { - if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone) - { - addcalllog(); - } - else if(uapi_dev_runtime_get_train_status() || transmittingISShow()) + if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone + || uapi_dev_runtime_get_train_status() || transmittingISShow() ) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "addcalllogend !!"); + addcalllog(); - StatusReset(); + + if(uapi_dev_runtime_get_train_status() || transmittingISShow()) + { + StatusReset(); + } + } else { @@ -801,8 +807,9 @@ void CalldialTimerCallBackProc(int data) dail_falg++; if(dail_falg>=DIAL_TIME) { - // cat1_call_hungup_timer(); - cat1_handle_call_disconnected("callfail"); + cat1_call_hungup_timer(); + + // cat1_handle_call_disconnected((char *)CallerLogModel::GetInstance()->GetPhoneNumber().c_str()); } } -- 2.17.1