gengxin
author@CHENG <2393524978@qq.com>
Tue, 30 Jan 2024 06:17:32 +0000 (14:17 +0800)
committer@CHENG <2393524978@qq.com>
Tue, 30 Jan 2024 06:17:32 +0000 (14:17 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat.c
2.sdk/sdk/gui/lv_watch/lv_apps/mmi_wechat/wechat_circle.c
2.sdk/sdk/gui/lvgl/hal/hal.c

index ba1ec1a..7d3ecdf 100644 (file)
@@ -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)
index 9a093a3..8a9a68c 100644 (file)
@@ -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)
index 0bac5c2..20776de 100644 (file)
@@ -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