增加活动数据刷新 与步数同步刷新 576/2 576/head
authorhcj <1224667075@qq.com>
Tue, 23 Jul 2024 10:25:13 +0000 (18:25 +0800)
committerhcj <1224667075@qq.com>
Tue, 23 Jul 2024 10:25:13 +0000 (18:25 +0800)
code/sdk/application/wearable/fd230app/nativeui/goal/src/goalother.cpp
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 7b14498..30fcd8d 100644 (file)
@@ -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();
+
 
     }
 
index 2260a2f..cb1a804 100644 (file)
@@ -56,6 +56,8 @@
 #include <cywee_hal.h>
 
 #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();