From: @CHENG <2393524978@qq.com> Date: Tue, 30 Jan 2024 06:17:32 +0000 (+0800) Subject: gengxin X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=212e22d17bad8c5c99c5cbf138b547f7eae80939;p=mirrors%2FASR3603_Z5.git gengxin --- diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat.c b/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat.c index ba1ec1a6..7d3ecdf6 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat.c @@ -102,6 +102,8 @@ void wechat_msg_info_index_item_delete(uint8_t msg_index) } } s_wechat_msg_info->msg_count--; + + wechat_msg_info_nv_write(); } void wechat_msg_info_all_item_delete(void) @@ -115,6 +117,8 @@ void wechat_msg_info_all_item_delete(void) _lv_memset_00(&(s_wechat_msg_info->msg_item[i]), msg_item_info_size); } s_wechat_msg_info->msg_count = 0; + + wechat_msg_info_nv_write(); } void wechat_msg_info_new_item_add(nv_watch_wechat_msg_item_info_t * msg_item) @@ -140,6 +144,8 @@ void wechat_msg_info_new_item_add(nv_watch_wechat_msg_item_info_t * msg_item) s_wechat_msg_info->msg_count++; _lv_memcpy(&(s_wechat_msg_info->msg_item[s_wechat_msg_info->msg_count - 1]), msg_item, msg_item_info_size); + + wechat_msg_info_nv_write(); } void * wechat_actId_ext_get(lv_watch_Activity_Id_t actId) diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat_circle.c b/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat_circle.c index 9a093a36..8a9a68c0 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat_circle.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat_circle.c @@ -102,6 +102,8 @@ void wechat_msg_info_index_item_delete(uint8_t msg_index) } } s_wechat_msg_info->msg_count--; + + wechat_msg_info_nv_write(); } void wechat_msg_info_all_item_delete(void) @@ -115,6 +117,8 @@ void wechat_msg_info_all_item_delete(void) _lv_memset_00(&(s_wechat_msg_info->msg_item[i]), msg_item_info_size); } s_wechat_msg_info->msg_count = 0; + + wechat_msg_info_nv_write(); } void wechat_msg_info_new_item_add(nv_watch_wechat_msg_item_info_t * msg_item) @@ -140,6 +144,8 @@ void wechat_msg_info_new_item_add(nv_watch_wechat_msg_item_info_t * msg_item) s_wechat_msg_info->msg_count++; _lv_memcpy(&(s_wechat_msg_info->msg_item[s_wechat_msg_info->msg_count - 1]), msg_item, msg_item_info_size); + + wechat_msg_info_nv_write(); } void * wechat_actId_ext_get(lv_watch_Activity_Id_t actId) diff --git a/2.sdk/sdk/gui/lvgl/hal/hal.c b/2.sdk/sdk/gui/lvgl/hal/hal.c index 0bac5c28..20776de7 100644 --- a/2.sdk/sdk/gui/lvgl/hal/hal.c +++ b/2.sdk/sdk/gui/lvgl/hal/hal.c @@ -1793,9 +1793,9 @@ extern void boot_flag_set(uint8_t value) __attribute__((weak)); VOID Hal_Power_Off(HAL_POWER_OFF_TYPE type) { #ifdef __MMI_ZHSX_SUPPORT__ -#ifdef __MMI_WECHAT_SUPPORT__ - wechat_msg_info_nv_write(); -#endif +//#ifdef __MMI_WECHAT_SUPPORT__ +// wechat_msg_info_nv_write(); +//#endif asl_pedometer_steps_save(true); #endif