From: kiso.chang Date: Tue, 16 Feb 2021 07:47:47 +0000 (+0900) Subject: Fix some volumes to be zero when sound mode change X-Git-Tag: submit/tizen_6.0/20210216.075550^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0;p=profile%2Fcommon%2Fapps%2Fnative%2Fsettings.git Fix some volumes to be zero when sound mode change Change-Id: I9f14ec563c56fda7143982368660b9dfb0fd829f Signed-off-by: kiso.chang --- diff --git a/setting-profile/src/setting-profile.c b/setting-profile/src/setting-profile.c index c40edc2..9c6375f 100644 --- a/setting-profile/src/setting-profile.c +++ b/setting-profile/src/setting-profile.c @@ -82,8 +82,6 @@ static void _setting_sound_app_resume(void *priv) sound_value = TRUE; (void)sound_manager_get_volume(SOUND_TYPE_RINGTONE, &volume); - if (sound_value == FALSE) - volume = 0; if (sound_data->data_call_volume && sound_data->data_call_volume->eo_check) { sound_data->data_call_volume->chk_status = volume; @@ -92,8 +90,6 @@ static void _setting_sound_app_resume(void *priv) } (void)sound_manager_get_volume(SOUND_TYPE_NOTIFICATION, &volume); - if (sound_value == FALSE) - volume = 0; if (sound_data->data_noti_volume && sound_data->data_noti_volume->eo_check) { sound_data->data_noti_volume->chk_status = volume; @@ -110,8 +106,6 @@ static void _setting_sound_app_resume(void *priv) } (void)sound_manager_get_volume(SOUND_TYPE_SYSTEM, &volume); - if (sound_value == FALSE) - volume = 0; if (sound_data->data_touch_volume && sound_data->data_touch_volume->eo_check) { sound_data->data_touch_volume->chk_status = volume;