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