From 76f33462d22c7c5f07345920f8b779052b112e75 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 23 Jul 2024 18:25:13 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E6=B4=BB=E5=8A=A8=E6=95=B0?= =?utf8?q?=E6=8D=AE=E5=88=B7=E6=96=B0=20=E4=B8=8E=E6=AD=A5=E6=95=B0?= =?utf8?q?=E5=90=8C=E6=AD=A5=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/goal/src/goalother.cpp | 4 ++++ .../wearable/service/msg_center/src/msg_center_customer.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalother.cpp b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalother.cpp index 7b14498d9..30fcd8dfa 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalother.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalother.cpp @@ -56,6 +56,10 @@ namespace OHOS calorienowdataLabel->SetText(GoalModel::GetInstance().getcaloriespnew()); caloriegoaldataLabel->SetText(GoalModel::GetInstance().getcaloriesGoal()); + Invalidate(); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalViewrefresh Invalidat "); + RootView::GetInstance()->Invalidate(); + } diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index 2260a2fd7..cb1a80478 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -56,6 +56,8 @@ #include #include "goalview.h" +#include "goalother.h" + #include "heart_blood/health_service/health_service.h" //#include "Systemupgrade.h" namespace OHOS { @@ -313,6 +315,10 @@ void MsgCenterNotifystepProc(const Topic topic, Request* req) { OHOS::GoalView::GetInstance()->GoalViewrefresh(); } + if(OHOS::GoalotherView::GetInstance()) + { + OHOS::GoalotherView::GetInstance()->GoalViewrefresh(); + } #endif // The alarm notification is not displayed if the incoming call notification is already being processed // cywee_save_data(); -- 2.17.1