bug
author@CHENG <2393524978@qq.com>
Mon, 8 Jan 2024 04:18:50 +0000 (12:18 +0800)
committer@CHENG <2393524978@qq.com>
Mon, 8 Jan 2024 04:18:50 +0000 (12:18 +0800)
2.sdk/sdk/gui/lv_watch/lv_apps/sms_msg/sms_msg.c

index 11f9edd..1e7100d 100644 (file)
@@ -362,20 +362,19 @@ void sms_msg_app_new_sms_info_ind(app_adp_new_sms_info_ind_t *sms_info)
                if(false == mmi_watch_is_in_do_not_disturb_time())\r
        #endif\r
                {\r
-                       if(true\r
-                               #ifdef __MMI_NEW_SMS_SILENT_SUPPORT__\r
-                               && (0 != mmi_new_sms_silent_swtich_get())\r
-                               #endif\r
-                               )\r
-                       {\r
-                               uint8_t volume = 0;\r
-                       #ifdef __MMI_USER_PROFILE_SUPPORT__\r
-                               volume = mmi_user_profile_current_mode_new_sms_volume_get();\r
-                       #else\r
-                               volume = query_current_volume();\r
-                       #endif\r
-                               Hal_NFFS_File_Play_Onetime(AUDIO_SETTING_AUDIO_MSG, volume, NULL, 0);\r
-                       }\r
+                       uint8_t volume = 0;\r
+                       \r
+               #ifdef __MMI_USER_PROFILE_SUPPORT__\r
+                       volume = mmi_user_profile_current_mode_new_sms_volume_get();\r
+               #else\r
+                       volume = query_current_volume();\r
+               #endif\r
+               #ifdef __MMI_NEW_SMS_SILENT_SUPPORT__\r
+                       if(0 != mmi_new_sms_silent_swtich_get())\r
+                               volume = 0;\r
+               #endif\r
+                       Hal_NFFS_File_Play_Onetime(AUDIO_SETTING_AUDIO_MSG, volume, NULL, 0);\r
+\r
                        if(true == mmi_watch_vibrate_is_permitted())\r
                        {\r
                                Hal_Vibrator_Play_Onetime(NULL, 1000);\r