gengxin
authorCCC <2393524978@qq.com>
Mon, 18 Sep 2023 08:33:44 +0000 (16:33 +0800)
committerCCC <2393524978@qq.com>
Mon, 18 Sep 2023 08:33:44 +0000 (16:33 +0800)
2.sdk/sdk/gui/lv_watch/framework/message/mmi_msg_zhsx.c
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_heart_rate.c
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_spo2.c
2.sdk/sdk/gui/lv_watch/lv_apps/health_measure/health_temperature.c

index 35d19d5..41700e3 100644 (file)
@@ -89,6 +89,9 @@ void mmi_ui_msg_action_charging_prompt(uint32_t chg_status)
 void mmi_ui_msg_action_do_not_disturb(uint8_t flag)
 {
        printf("[@CHENG_DEBUG][%s][%d]: %d\n", __FUNCTION__, __LINE__, flag);
+
+       if(0 == Hal_Pm_Get_State())
+               return;
        
        mmi_msg_do_not_disturb_t * msg_info = (mmi_msg_do_not_disturb_t *)Hal_Mem_Alloc(sizeof(mmi_msg_do_not_disturb_t));
 
@@ -103,6 +106,9 @@ void mmi_ui_msg_action_do_not_disturb(uint8_t flag)
 #if USE_LV_WATCH_PEDOMETER != 0
 void mmi_ui_msg_action_pedometer_update(void)
 {
+       if(0 == Hal_Pm_Get_State())
+               return;
+       
        mmi_ui_msg_action_no_para_msg(MMI_MSG_PEDOMETER_UPDATE);
 }
 #endif
index e99a3c0..10d5eb3 100644 (file)
@@ -248,7 +248,7 @@ lv_obj_t * health_heart_rate_create(lv_obj_t * activity_obj)
                mmi_health_measure_ui_measure_start(MMI_HEALTH_MEASURE_HEART);
 
                lv_obj_t * gif_cont = lv_cont_create(cont, NULL);
-               lv_obj_set_size(gif_cont, LV_HOR_RES, 120);
+               lv_obj_set_size(gif_cont, LV_HOR_RES, 100);
                lv_obj_set_style_local_bg_color(gif_cont, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
                lv_obj_align(gif_cont, cont, LV_ALIGN_IN_TOP_MID, 0, 40);
                ext->gif_cont = gif_cont;
index 8669d7b..e68e6a1 100644 (file)
@@ -244,7 +244,7 @@ lv_obj_t * health_spo2_create(lv_obj_t * activity_obj)
                mmi_health_measure_ui_measure_start(MMI_HEALTH_MEASURE_SPO2);
 
                lv_obj_t * gif_cont = lv_cont_create(cont, NULL);
-               lv_obj_set_size(gif_cont, LV_HOR_RES, 120);
+               lv_obj_set_size(gif_cont, LV_HOR_RES, 120); // 100);
                lv_obj_set_style_local_bg_color(gif_cont, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
                lv_obj_align(gif_cont, cont, LV_ALIGN_IN_TOP_MID, 0, 20);
                ext->gif_cont = gif_cont;
index a1e26a9..d24b89a 100644 (file)
@@ -250,7 +250,7 @@ lv_obj_t * health_temperature_create(lv_obj_t * activity_obj)
                mmi_health_measure_ui_measure_start(MMI_HEALTH_MEASURE_TEMPERATURE);
 
                lv_obj_t * gif_cont = lv_cont_create(cont, NULL);
-               lv_obj_set_size(gif_cont, LV_HOR_RES, 120);
+               lv_obj_set_size(gif_cont, LV_HOR_RES, 100);
                lv_obj_set_style_local_bg_color(gif_cont, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
                lv_obj_align(gif_cont, cont, LV_ALIGN_IN_TOP_MID, 0, 40);
                ext->gif_cont = gif_cont;