From: luozheng <1732036298@qq.com> Date: Sat, 28 Sep 2024 06:53:09 +0000 (+0800) Subject: 主界面view析构函数修改 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=cb491154e373e894fd8655d80c79e14ad7ef4306;p=mirrors%2FFD230.git 主界面view析构函数修改 --- 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 a198fb31b..469ae4fc0 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp @@ -64,9 +64,6 @@ namespace OHOS WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample::~MainViewSample"); mainSwipeGroup->RemoveAll(); - dropDownView->ClearBackgroundBlur(); - messageView->ClearBackgroundBlur(); - for (int32_t i = 0; i < MAX_CARD; i++) { recordCard[i] = nullptr; @@ -94,7 +91,7 @@ namespace OHOS } if (dropDownView != nullptr) { - dropDownView->RemoveAll(); + dropDownView->ClearBackgroundBlur(); delete dropDownView; dropDownView = nullptr; } @@ -107,6 +104,7 @@ namespace OHOS } if (messageView != nullptr) { + messageView->ClearBackgroundBlur(); messageView->RemoveAll(); delete messageView; messageView = nullptr; @@ -416,7 +414,6 @@ namespace OHOS View::OnStop(); container_ = nullptr; - messageView->RemoveAll(); RootView::GetInstance()->ClearOnKeyActListener(); RootView::GetInstance()->RemoveAll(); return;