From 0d7a3ac521c8e403d31e00e44d91d1e8aef1d3e9 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 24 Oct 2024 14:30:13 +0800 Subject: [PATCH] =?utf8?q?SOS=E5=91=BC=E5=8F=AB=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 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 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 67d5b9c54..98b255a73 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 @@ -68,7 +68,7 @@ void sos_falg_add(void) { if(OHOS::get_sos_number_count()<=0) { - sos_dail_falg=0; + calldial_event_sendmsg_toUI("SOS"); return; } @@ -108,6 +108,7 @@ void start_SOS_phone_dail(void) { if(OHOS::get_sos_number_count()<=0) { + calldial_event_sendmsg_toUI("SOS"); return; } #if SOS_TEST_FLAG @@ -400,8 +401,16 @@ UIViewGroup* SOS_cant_dial(void) alarm_UILabel->Resize(370, 40); // widget's width and height alarm_UILabel->SetViewId("label1");// Set style alarm_UILabel->SetStyle(STYLE_TEXT_FONT, 33); - - alarm_UILabel->SetText("请检查SIM卡或者蓝牙连接"); + if(OHOS::get_sos_number_count()<=0) + { + alarm_UILabel->SetText("未设置SOS号码,请前往APP设置。"); + } + else + { + alarm_UILabel->SetText("请检查SIM卡或者蓝牙连接"); + } + + alarm_UILabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP); alarm_UILabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); alarm_UILabel->SetRollSpeed(0); -- 2.17.1