From af8748f8e80efeec18e85a6e3137eb5567cc2632 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 8 Jan 2026 15:42:13 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E5=9E=8B=E5=8F=B7=E6=A0=BC?= =?utf8?q?=E6=97=A0=E7=BD=91=E7=BB=9C=E4=B8=8D=E5=8F=98=E5=8C=96=E7=9A=84?= =?utf8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdBlueView.cpp | 5 +---- .../nativeui/thunderbird/src/ThunderBirdMainView.cpp | 6 +++++- .../nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueView.cpp index f2d6ebda4..e01f9169d 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueView.cpp @@ -716,10 +716,7 @@ namespace OHOS } case THUNDERBIRD_BULEVIEW_EXIT_OR_RETRY: { - if (BackGround) - { - BackGround->SetVisible(true); - } + ThunderBirdMainView::GetInstance()->InvalidateGroup1(true); if (TextLabel) { TextLabel->SetPosition(15, 148, 330, 42); diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp index 8b1e9714d..6ca9dbf76 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp @@ -1816,7 +1816,11 @@ namespace OHOS // 从Model获取网络状态信息 // int sim = ThunderBirdModel::GetInstance()->GetSimStatus(); // SIM卡状态: 1=有SIM卡, 0=无SIM卡 int cat1_powerOn = ThunderBirdModel::GetInstance()->GetCat1PowerStatus(); // CAT1电源状态: 1=开机, 0=关机 - int signal = ThunderBirdModel::GetInstance()->GetSignalStrength(); + int signal = ThunderBirdModel::GetInstance()->GetSignalStrength(); + if(signal == 99) + { + signal = 0; + } int network_on = ThunderBirdModel::GetInstance()->GetNetworkStatus(); // 网络连接状态: 1=在线, 0=断网 // int cat1_network_type = ThunderBirdModel::GetInstance()->GetNetworkType(); // 网络类型: 0=无网络, 1=GSM, 2=3G, 4=4G/LTE diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 343fccabe..ee7f7352f 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -1737,6 +1737,7 @@ extern "C" { //如果有配对设备则上报状态否则不上报 unsigned int connedDevicesNum = 0; bool ret = gap_get_paired_devices_num(&connedDevicesNum); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "connedDevicesNum=%d", connedDevicesNum); if(ret == true && connedDevicesNum > 0) { //异步上报耳机状态 -- 2.17.1