The index of theme should be set by external parameter.
The wrong variable went into vconf setter as order changed.
Change-Id: I15b51552cf822cd26ac844a02609440561bec1f0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
if (index_of_theme > number_of_theme || index_of_theme <= 0)
return -EINVAL;
- ret = vconf_set_int(VCONFKEY_SETAPPL_ACCESSIBILITY_SOUND_FEEDBACK_THEME, current_theme_index+1);
+ ret = vconf_set_int(VCONFKEY_SETAPPL_ACCESSIBILITY_SOUND_FEEDBACK_THEME, index_of_theme);
if (ret < 0) {
_E("Failed to set vconf value for VCONFKEY_SETAPPL_ACCESSIBILITY_SOUND_FEEDBACK_THEME");
return -EPERM;