From 5cea3346e623aeb2ecaf338408dd27401ff0ab7e Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 28 Sep 2024 14:53:09 +0800 Subject: [PATCH] =?utf8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2view=E6=9E=90?= =?utf8?q?=E6=9E=84=E5=87=BD=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/main/src/MainViewSample.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; -- 2.17.1