From: Caisking <3449750381@qq.com> Date: Fri, 7 Jun 2024 11:58:42 +0000 (+0800) Subject: 优化部分析构问题 X-Git-Tag: release_V1.2.70_20241020_135402~1024^2~1^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F238%2F3;p=mirrors%2FFD230.git 优化部分析构问题 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp index e2ced55e9..498658c6c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp @@ -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; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordView.cpp b/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordView.cpp index bfa38000f..f28a022a7 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traingrecord/src/TraingRecordView.cpp @@ -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"); } /*控制显示界面*/