Fix N_SE-41484 : Volume level is not changed.
authorhhh.kwon <hhh.kwon@samsung.com>
Mon, 17 Jun 2013 10:31:22 +0000 (19:31 +0900)
committerhhh.kwon <hhh.kwon@samsung.com>
Mon, 17 Jun 2013 10:31:22 +0000 (19:31 +0900)
src/_logic.c
src/_sound.c

index 8fb7154..10ae4f0 100755 (executable)
@@ -252,6 +252,11 @@ Eina_Bool _volume_show(void *data)
                {
                        _rotate_func(ad);
                        elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_HIDE);
+
+                       /* set type once when volume app shows */
+                       ad->type = _get_volume_type();
+                       ad->step = _get_step(ad->type);
+
                        evas_object_show(ad->win);
                        if(syspopup_has_popup(ad->volume_bundle))
                                syspopup_reset(ad->volume_bundle);
index 8bd8f58..08b3142 100755 (executable)
@@ -201,8 +201,6 @@ void _mm_func(void *data)
        retm_if(ad->win == NULL, "Failed to get window\n");
 
        /* function could be activated when window exists */
-       ad->type = _get_volume_type();
-       ad->step = _get_step(ad->type);
        mm_sound_route_get_playing_device(&device);
        mm_sound_volume_get_value(ad->type, (unsigned int*)(&val));