注释经典蓝牙使用不存在函数
authorCaisking <3449750381@qq.com>
Thu, 11 Apr 2024 10:27:17 +0000 (18:27 +0800)
committerCaisking <3449750381@qq.com>
Thu, 11 Apr 2024 10:27:17 +0000 (18:27 +0800)
code/sdk/application/wearable/fd230app/nativeui/classicbluetooth/src/ClassicBlueToothView.cpp
code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp

index f025ed6..077c970 100644 (file)
@@ -34,12 +34,12 @@ namespace OHOS
             if (state == true)\r
             {\r
                 ClassicBlueToothModel::GetInstance()->MarkTradionalBlueToothToggleButtonStatus(true);\r
-                ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", true);\r
+                // ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", true);\r
             }\r
             else\r
             {\r
                 ClassicBlueToothModel::GetInstance()->MarkTradionalBlueToothToggleButtonStatus(false);\r
-                ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", false);\r
+                // ConfigModel::GetInstance()->WriteJsonData(ConfigModel::GetInstance()->GetcJSON(), "TradionalBlueToothToggleButtonState", false);\r
             }\r
 \r
             delete Title;\r
index d0ff34a..a9f13b5 100644 (file)
@@ -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;