sound: Remove set_theme_id() from id initialization 07/306307/4 accepted/tizen/7.0/unified/20240222.070139
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 20 Feb 2024 02:43:13 +0000 (11:43 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 20 Feb 2024 06:35:24 +0000 (15:35 +0900)
commit82a5b4071acbf7acb21160fd1f4965e4991cb55d
tree55e4bf0526aa6608d8fb08dddce73c0fe5788cd2
parent2e04e2179422dc46823c358c02d3c65eaecf66e3
sound: Remove set_theme_id() from id initialization

When the sound current_theme_id is initialized,
there is no need to call sound_set_theme_id().
Because sound_set_theme_id() calls vconf_set_int(),
this requires privilege "http://tizen.org/privilege/systemsettings.admin" when it call for
VCONFKEY_SETAPPL_ACCESSIBILITY_SOUND_FEEDBACK_THEME.
That makes all apps have that privilege during sound init process.
Thus, this function usage is removed.

Current theme id policy is as follows.

1. If there is a set vconf value, current theme id follows that value.
2. It there is no set vconf value, current theme id will be default theme id by sound conf parsing.

Change-Id: I3c164d25e6c4cd09cc32c3119ea15e939856b108
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/sound.c