From: hcj <1224667075@qq.com> Date: Sat, 9 Nov 2024 02:25:52 +0000 (+0800) Subject: 蓝牙修改 X-Git-Tag: fd230_release_V1.3.102~100 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a70e2c4b9efc9852fb7bcc5a84fd603bb82a0b1e;p=mirrors%2FFD230.git 蓝牙修改 --- 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()); }