Fix some volumes to be zero when sound mode change 67/253667/1 accepted/tizen/unified/20210217.030905 submit/tizen/20210216.075520
authorkiso.chang <kiso.chang@samsung.com>
Tue, 16 Feb 2021 07:47:47 +0000 (16:47 +0900)
committerkiso.chang <kiso.chang@samsung.com>
Tue, 16 Feb 2021 07:49:37 +0000 (16:49 +0900)
Change-Id: I9f14ec563c56fda7143982368660b9dfb0fd829f
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
setting-profile/src/setting-profile.c

index c40edc2ddcc39e284f351c1d5d5f3d19ae2b8e27..9c6375f50fa1d434b154f8c1d67494aeb84099c9 100644 (file)
@@ -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;