From: hcj <1224667075@qq.com> Date: Tue, 23 Jul 2024 10:25:13 +0000 (+0800) Subject: 增加活动数据刷新 与步数同步刷新 X-Git-Tag: release_V1.2.70_20241020_135402~702^2~13^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=76f33462d22c7c5f07345920f8b779052b112e75;p=mirrors%2FFD230.git 增加活动数据刷新 与步数同步刷新 --- 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();