From: Caisking <3449750381@qq.com> Date: Thu, 11 Apr 2024 10:27:17 +0000 (+0800) Subject: 注释经典蓝牙使用不存在函数 X-Git-Tag: release_V1.2.70_20241020_135402~1213^2 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=9fe2a3b21cabf58ff5fd7fe15bf6c0c86c6719d5;p=mirrors%2FFD230.git 注释经典蓝牙使用不存在函数 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothView.cpp b/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothView.cpp index f025ed6b7..077c970df 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothView.cpp @@ -34,12 +34,12 @@ namespace OHOS if (state == true) { ClassicBlueToothModel::GetInstance()->MarkTradionalBlueToothToggleButtonStatus(true); - ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", true); + // ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", true); } else { ClassicBlueToothModel::GetInstance()->MarkTradionalBlueToothToggleButtonStatus(false); - ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", false); + // ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", false); } delete Title; diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp index d0ff34a9c..a9f13b534 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp @@ -55,19 +55,6 @@ namespace OHOS recordCard[i] = nullptr; pageStatus[i] = false; } - - if (mainSwipeGroup != nullptr) - { - delete mainSwipeGroup; - mainSwipeGroup = nullptr; - } - - if (mainClockView != nullptr) - { - delete mainClockView; - mainClockView = nullptr; - } - if (activityWeekView != nullptr) { activityWeekView->RemoveAll(); @@ -84,21 +71,23 @@ namespace OHOS if (heartRateView != nullptr) { + heartRateView->RemoveAll(); delete heartRateView; heartRateView = nullptr; } if (dropDownView != nullptr) { + dropDownView->RemoveAll(); delete dropDownView; dropDownView = nullptr; } if (activityWeekView != nullptr) { + activityWeekView->RemoveAll(); delete activityWeekView; activityWeekView = nullptr; } - /* -------------------------------------------------------------------------- */ if (messageView != nullptr) { messageView->RemoveAll(); @@ -110,17 +99,15 @@ namespace OHOS delete MessageLable; MessageLable = nullptr; } - /* -------------------------------------------------------------------------- */ if (compassControlView != nullptr) { compassControlView->RemoveAll(); delete compassControlView; compassControlView = nullptr; } - /* -------------------------------------------------------------------------- */ if (mainClockView != nullptr) { - // mainClockView->RemoveAll(); + mainClockView->RemoveAll(); delete mainClockView; mainClockView = nullptr; } @@ -141,7 +128,6 @@ namespace OHOS delete applistCardView; applistCardView = nullptr; } - /* -------------------------------------------------------------------------- */ if (mainSwipeGroup != nullptr) { delete mainSwipeGroup;