summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpr.jung <pr.jung@samsung.com>2019-02-14 10:47:46 +0900
committerpr.jung <pr.jung@samsung.com>2019-02-14 10:53:58 +0900
commit5f02762cbf750247cd7bfc9c1daa468350e3966b (patch)
tree227d93ba32d3c98ab331c82340a385320db877dc
parentf556fb57403255ce7b1344057bff9f3bf98ba6d5 (diff)
downloadlibsvi-5f02762cbf750247cd7bfc9c1daa468350e3966b.tar.gz
libsvi-5f02762cbf750247cd7bfc9c1daa468350e3966b.tar.bz2
libsvi-5f02762cbf750247cd7bfc9c1daa468350e3966b.zip
Change-Id: Ie7428b1af81c41fcd8451268fd94a2bdc9e5f0b9 Signed-off-by: pr.jung <pr.jung@samsung.com>
-rw-r--r--src/check.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/check.c b/src/check.c
index 340fee5..e5eab3e 100644
--- a/src/check.c
+++ b/src/check.c
@@ -434,7 +434,9 @@ static void profile_init(void)
else if (prof == PROFILE_MOBILE) {
if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, &lock_sndstatus) < 0)
_W("VCONFKEY_SETAPPL_SOUND_LOCK_BOOL ==> FAIL!!"); //LCOV_EXCL_LINE
- vconf_notify_key_changed(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, feedback_lock_sndstatus_cb, NULL);
+ ret = vconf_notify_key_changed(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, feedback_lock_sndstatus_cb, NULL);
+ if (ret != 0)
+ _W("VCONFKEY_SETAPPL_SOUND_LOCK_BOOL ==> FAIL!!"); //LCOV_EXCL_LINE
}
/* check call status */
@@ -496,8 +498,11 @@ static void profile_exit(void)
if (prof == PROFILE_COMMON)
return;
- else if (prof == PROFILE_MOBILE)
- vconf_ignore_key_changed(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, feedback_lock_sndstatus_cb);
+ else if (prof == PROFILE_MOBILE) {
+ ret = vconf_ignore_key_changed(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, feedback_lock_sndstatus_cb);
+ if (ret != 0)
+ _W("Remove watch for VCONFKEY_SETAPPL_SOUND_LOCK_BOOL failed");
+ }
/* remove watch */
ret = vconf_ignore_key_changed(VCONFKEY_CALL_STATE, feedback_callstatus_cb);