From a8caebaee5be091dd1cbd481073057216ab92136 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 25 Apr 2026 16:51:25 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E8=BF=9B=E5=85=A5=E7=9C=81?= =?utf8?q?=E7=94=B5=E6=A8=A1=E5=BC=8F=E7=95=8C=E9=9D=A2=E5=86=85=E5=AD=98?= =?utf8?q?=E6=B3=84=E6=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/calendar/src/CalendarPresenter.cpp | 4 ++-- .../nativeapp/nativeui/saveele/src/SaveBatView.cpp | 13 ++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/calendar/src/CalendarPresenter.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/calendar/src/CalendarPresenter.cpp index 43766067e..b4c586498 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/calendar/src/CalendarPresenter.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/calendar/src/CalendarPresenter.cpp @@ -52,14 +52,14 @@ namespace OHOS bool CalendarPresenter::OnClick(UIView &view, const ClickEvent &event) { UNUSED(event); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnClick"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnClick"); return false; } bool CalendarPresenter::OnDragEnd(OHOS::UIView &view, const OHOS::DragEvent &event) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd"); if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT) { if (event.GetPreLastPoint().x - event.GetStartPoint().x > 100) diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/saveele/src/SaveBatView.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/saveele/src/SaveBatView.cpp index 07dc378e5..3fabd847c 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/saveele/src/SaveBatView.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/saveele/src/SaveBatView.cpp @@ -336,8 +336,11 @@ namespace OHOS /* 关闭省电模式 */ uapi_exit_power_saving_mode(); - // UIViewGroup *tmpGroup = dynamic_cast(group_); - // UIViewGroup::RemoveAndDeleteAllRecursively(tmpGroup); + if (group_) { + group_->RemoveAll(); + delete group_; + group_ = nullptr; + } // 释放所有动态分配的成员变量 if (timelabel) { @@ -402,11 +405,7 @@ namespace OHOS if (restart_) { delete restart_; restart_ = nullptr; - } - if (group_) { - delete group_; - group_ = nullptr; - } + } if (label_) { delete label_; label_ = nullptr; -- 2.17.1