From 9fe2a3b21cabf58ff5fd7fe15bf6c0c86c6719d5 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Thu, 11 Apr 2024 18:27:17 +0800 Subject: [PATCH] =?utf8?q?=E6=B3=A8=E9=87=8A=E7=BB=8F=E5=85=B8=E8=93=9D?= =?utf8?q?=E7=89=99=E4=BD=BF=E7=94=A8=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=87=BD?= =?utf8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/ClassicBlueToothView.cpp | 4 ++-- .../nativeui/main/src/MainViewSample.cpp | 22 ++++--------------- 2 files changed, 6 insertions(+), 20 deletions(-) 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; -- 2.17.1