From: hcj <1224667075@qq.com> Date: Thu, 24 Oct 2024 10:26:57 +0000 (+0800) Subject: 蓝牙修改,增快链接动画速度 X-Git-Tag: fd230_release_V1.3.102~191^2~1^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1253%2F1;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 89567c555..b1fbfccc5 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/BluetoothServiceOptionsView.cpp @@ -139,7 +139,7 @@ namespace OHOS break; } - if(count_num==3 || connect_state) + if(count_num==9 || connect_state) { if( BluetoothServiceOptionsView::GetInstance()) BluetoothServiceOptionsView::GetInstance()->show_connecting_view(false); @@ -190,7 +190,7 @@ namespace OHOS } MG_TEST_timer = osTimerNew((osTimerFunc_t)connectTimerCallBack, osTimerPeriodic, NULL, NULL); - tick =1500; + tick =500; retTimer = osTimerStart(MG_TEST_timer, tick); if (retTimer != osOK && MG_TEST_timer != NULL) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"StartCallTimer osTimerStart failed, ret = %lx!!", retTimer); diff --git a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp index 6e09757e7..58362b4cd 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp @@ -11,6 +11,10 @@ #include "classicbluetooth/include/BluetoothServiceOptionsView.h" #include "player/include/PlayersView.h" #include "player/include/PlayersModel.h" +#include "PhoneService.h" +#include "phoneservice/include/PhoneService.h" +#include "BluetoothModel.h" + extern "C" { #include "custom_runtime.h" @@ -130,7 +134,10 @@ namespace OHOS btConnectStatus = status; if (PullUpDownView::GetInstance() != nullptr) { - PullUpDownView::GetInstance()->UpdateBlueToothStatus(status); + if(!uapi_a2dp_snk_get_device_connect_state()&& !uapi_hfp_connect_state()) + PullUpDownView::GetInstance()->UpdateBlueToothStatus(false); + else + PullUpDownView::GetInstance()->UpdateBlueToothStatus(true); } if (BluetoothServiceOptionsView::GetInstance()) {