From a70e2c4b9efc9852fb7bcc5a84fd603bb82a0b1e Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 9 Nov 2024 10:25:52 +0800 Subject: [PATCH] =?utf8?q?=E8=93=9D=E7=89=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/BluetoothServiceOptionsView.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp b/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp index 3c7face64..a77170817 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp @@ -411,19 +411,25 @@ namespace OHOS void BluetoothServiceOptionsView::show_connecting_view(bool data) { - + if(connectingScrollView) connectingScrollView->SetVisible(data); + if(data==false) { + if(A2DP_ToggleButton) A2DP_ToggleButton->SetState(uapi_a2dp_snk_get_device_connect_state()); + + if(HFP_ToggleButton) HFP_ToggleButton->SetState(uapi_hfp_connect_state()); // ConfigModel::GetInstance()->GetHFPState()); } } void BluetoothServiceOptionsView::Button_UPdata(void) { - + if(A2DP_ToggleButton) A2DP_ToggleButton->SetState(uapi_a2dp_snk_get_device_connect_state()); + + if(HFP_ToggleButton) HFP_ToggleButton->SetState(uapi_hfp_connect_state()); // ConfigModel::GetInstance()->GetHFPState()); } -- 2.17.1