优化部分析构问题 238/3
authorCaisking <3449750381@qq.com>
Fri, 7 Jun 2024 11:58:42 +0000 (19:58 +0800)
committerCaisking <3449750381@qq.com>
Fri, 7 Jun 2024 11:58:42 +0000 (19:58 +0800)
code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp
code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordView.cpp

index e2ced55..498658c 100644 (file)
@@ -1110,7 +1110,7 @@ namespace OHOS
         // 关闭文件
         file.close();
 
-        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CheckDataJson is ok");
+        //WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CheckDataJson is ok");
         return true;
     }
 
index bfa3800..f28a022 100644 (file)
@@ -64,6 +64,10 @@ namespace OHOS
     void TraingRecordView::DeInit()
     {
         container_->RemoveAll();
+        lackView->RemoveAll();
+        recordView->RemoveAll();
+        TraingRecordList->RemoveAll();
+
         if (labeltitle_ != nullptr)
         {
             lackView->Remove(labeltitle_);
@@ -221,7 +225,7 @@ namespace OHOS
             return;
         }
         recordView->SetOnDragListener(recorddraglistener);
-        recordView->SetVisible(false); //隐藏界面
+        recordView->SetVisible(false); // 隐藏界面
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ShowRecordView end");
     }
     /*控制显示界面*/