From: Caisking <3449750381@qq.com> Date: Sat, 5 Oct 2024 09:50:41 +0000 (+0800) Subject: 充电弹窗:修改回调与UI的析构顺序 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=82d25eca9259399a1ac2d0187677a057e687e6e4;p=mirrors%2FFD230.git 充电弹窗:修改回调与UI的析构顺序 --- diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/charge_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/charge_notification.cpp index bc26730d0..85dcdd51f 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/charge_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/charge_notification.cpp @@ -122,7 +122,6 @@ namespace OHOS { if (UIViewGroup_charge != nullptr) { - UIViewGroup_charge->RemoveAll(); if(Chargeing_timer) { @@ -131,6 +130,8 @@ namespace OHOS Chargeing_timer = NULL; } + UIViewGroup_charge->RemoveAll(); + if (batteryprogress) { delete batteryprogress; batteryprogress = nullptr;