From 6c2733b2c884aabaa99aab90fc7aaa2444617c3c Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Thu, 5 Sep 2024 15:10:46 +0800 Subject: [PATCH] =?utf8?q?=E5=8F=96=E6=B6=88=E5=A4=9A=E4=BD=99=E7=9A=84?= =?utf8?q?=E9=81=A5=E6=8E=A7=E6=8B=8D=E7=85=A7=E7=9A=84=E8=B5=84=E6=BA=90?= =?utf8?q?=E9=87=8A=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/takephotos/src/TakephotosView.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/takephotos/src/TakephotosView.cpp b/code/sdk/application/wearable/fd230app/nativeui/takephotos/src/TakephotosView.cpp index e998433ce..79eea0918 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/takephotos/src/TakephotosView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/takephotos/src/TakephotosView.cpp @@ -29,13 +29,19 @@ namespace OHOS TakephotosView::~TakephotosView() { // DeInit(); - creamAnimator->Stop(); - smileAnimator->Stop(); - FreeImageInfoArray(creamimageInfos, creambasePath.c_str(), 50); - FreeImageInfoArray(smileimageInfos, smilebasePath.c_str(), 50); - ReleaseImageAnimatorSource(creamimageAnimatorInfo, 50); + PopupPhoto staust = TakephotosModel::GetInstance()->GetPopStaust(); + if (staust == PopupPhoto::CreamPopup) + { + creamAnimator->Stop(); + FreeImageInfoArray(creamimageInfos, creambasePath.c_str(), 50); + } + else + { + smileAnimator->Stop(); + FreeImageInfoArray(smileimageInfos, smilebasePath.c_str(), 50); + } ReleaseImageAnimatorSource(smileimageAnimatorInfo, 50); - + ReleaseImageAnimatorSource(creamimageAnimatorInfo, 50); UIViewGroup *tmpGroup = dynamic_cast(container_); UIViewGroup::RemoveAndDeleteAllRecursively(tmpGroup); -- 2.17.1