diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2020-03-10 14:36:27 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2020-03-10 08:22:02 +0000 |
commit | c50f896d18b82148278820f026ffae1018945852 (patch) | |
tree | f25cd2f3753cbff58fc5be00f164939bb0f18fad | |
parent | 5fb02a4b833475e28f4afdd508fbac595eb5410f (diff) | |
download | deviced-c50f896d18b82148278820f026ffae1018945852.tar.gz deviced-c50f896d18b82148278820f026ffae1018945852.tar.bz2 deviced-c50f896d18b82148278820f026ffae1018945852.zip |
Change vconfkey about ambient condition
Change-Id: I8411394a2f2317374a503349a0bea095b78051d4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 66598f33af1800b26e7af9ddce9b21254fca91eb)
-rw-r--r-- | src/display/ambient-mode.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/display/ambient-mode.c b/src/display/ambient-mode.c index 1469d5cc..a6158247 100644 --- a/src/display/ambient-mode.c +++ b/src/display/ambient-mode.c @@ -236,15 +236,16 @@ static void ambient_init(void *data) { int ret; - ret = vconf_get_bool(VCONFKEY_SETAPPL_AMBIENT_MODE_BOOL, &ambient_condition); + ret = vconf_get_bool("db/starter/always_on_display", &ambient_condition); if (ret < 0) { - _E("Failed to get vconf value for ambient mode: %d", vconf_get_ext_errno()); - ambient_condition = false; - } - _I("Ambient mode condition is %d.", ambient_condition); + _E("Failed to get initial AOD condition. AOD is not going to work."); + return; + } else { + _I("Ambient mode condition is %d.", ambient_condition); - vconf_notify_key_changed(VCONFKEY_SETAPPL_AMBIENT_MODE_BOOL, - ambient_set_condition, NULL); + vconf_notify_key_changed("db/starter/always_on_display", + ambient_set_condition, NULL); + } ret = subscribe_dbus_signal(NULL, DEVICED_OBJECT_PATH, |