{
_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);
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));