From: hcj <1224667075@qq.com> Date: Thu, 24 Oct 2024 06:30:13 +0000 (+0800) Subject: SOS呼叫修改 X-Git-Tag: fd230_release_V1.3.102~193^2~1^2~4 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0d7a3ac521c8e403d31e00e44d91d1e8aef1d3e9;p=mirrors%2FFD230.git SOS呼叫修改 --- 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);