From: @CHENG <2393524978@qq.com> Date: Mon, 8 Jan 2024 04:18:50 +0000 (+0800) Subject: bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=92f46648c02e20c8753833a4025572eab07d7279;p=mirrors%2FASR3603_Z5.git bug --- diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/sms_msg/sms_msg.c b/2.sdk/sdk/gui/lv_watch/lv_apps/sms_msg/sms_msg.c index 11f9edd7..1e7100d4 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/sms_msg/sms_msg.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/sms_msg/sms_msg.c @@ -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()) #endif { - if(true - #ifdef __MMI_NEW_SMS_SILENT_SUPPORT__ - && (0 != mmi_new_sms_silent_swtich_get()) - #endif - ) - { - uint8_t volume = 0; - #ifdef __MMI_USER_PROFILE_SUPPORT__ - volume = mmi_user_profile_current_mode_new_sms_volume_get(); - #else - volume = query_current_volume(); - #endif - Hal_NFFS_File_Play_Onetime(AUDIO_SETTING_AUDIO_MSG, volume, NULL, 0); - } + uint8_t volume = 0; + + #ifdef __MMI_USER_PROFILE_SUPPORT__ + volume = mmi_user_profile_current_mode_new_sms_volume_get(); + #else + volume = query_current_volume(); + #endif + #ifdef __MMI_NEW_SMS_SILENT_SUPPORT__ + if(0 != mmi_new_sms_silent_swtich_get()) + volume = 0; + #endif + Hal_NFFS_File_Play_Onetime(AUDIO_SETTING_AUDIO_MSG, volume, NULL, 0); + if(true == mmi_watch_vibrate_is_permitted()) { Hal_Vibrator_Play_Onetime(NULL, 1000);