From a49845ac7676c3590afcdc874061bff0daba7e13 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 9 Oct 2024 18:11:04 +0800 Subject: [PATCH] =?utf8?q?sos=E5=A2=9E=E5=8A=A0=E9=80=82=E9=85=8DHFP?= =?utf8?q?=E5=91=BC=E5=8F=AB,=E5=91=BC=E5=8F=AB=E5=A4=87=E6=B3=A8=E6=98=BE?= =?utf8?q?=E7=A4=BA#933=20#932?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/phone/src/phoneaddressmodel.cpp | 14 ++++++ .../msg_center/include/notify/dial_sos_c.h | 3 ++ .../src/notify/makephone_notification.cpp | 45 +++++++++---------- 3 files changed, 39 insertions(+), 23 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp index 9954351eb..578a87378 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp @@ -169,6 +169,19 @@ namespace OHOS bool get_phone_addrss_name(char *name,const char *phone,uint8_t *sex) { + + for(int i=0;i=9) + if(sos_dail_falg>=OHOS::get_sos_number_count()*3) { sos_dail_falg=0; } @@ -112,7 +112,7 @@ void start_SOS_phone_dail(void) #if SOS_HFP_FALG else if(uapi_hfp_connect_state()) { - DialCall((unsigned char *)sos_dail_buf,osal_strlen((const char*)sos_dail_buf)); + DialCall((unsigned char *)OHOS::get_sos_number(0),osal_strlen((const char*)OHOS::get_sos_number(0))); sos_dail_falg=1; } #endif @@ -545,31 +545,31 @@ static void WatchFinishHandle(void) { if (NotificationManager::GetInstance()->GetWatchCallStatus()) { - if(get_falg_SOS()) + if(get_falg_SOS()) { addcalllog(); sos_falg_add(); } else { - if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone) - { - addcalllog(); - } - else if(uapi_dev_runtime_get_train_status() || transmittingISShow()) - { - addcalllog(); - StatusReset(); - } - else - { - uapi_cat1_stop_volte_voice(); - - addcalllog(); - StatusReset(); - } + if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourcePhone) + { + addcalllog(); } - + else if(uapi_dev_runtime_get_train_status() || transmittingISShow()) + { + addcalllog(); + StatusReset(); + } + else + { + uapi_cat1_stop_volte_voice(); + + addcalllog(); + StatusReset(); +} + } + } DisableCallTimer(CallTimerType::NOTIFY_PHONE_DIAL_DISPLAY); } @@ -614,7 +614,6 @@ void cat1_phone_state_change_cb(uint8_t state) if(call_stat==2) call_stat=1; PhoneServiceScreenCtr(true); - sos_falg_clean(); WatchActiveHandle(); break; case OPERATE_PHONE_HOLD: -- 2.17.1