callback: handle change display state to VCONFKEY_PM_STATE_SLEEP 16/280916/2 accepted/tizen/unified/20220927.132359
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 6 Sep 2022 23:45:29 +0000 (08:45 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 7 Sep 2022 00:12:42 +0000 (09:12 +0900)
commitd7929c1230d073433061665f8b3623ca1eb0ab67
tree15df7cfd7ab6e4187ca8e084b9fa5aead25deb17
parent4fb8b1f6309602e13f1f51042495a4b23bbdcb64
callback: handle change display state to VCONFKEY_PM_STATE_SLEEP

The device_display_get_state() returns DISPLAY_STATE_POWER_OFF for the
VCONFKEY_PM_STATE_SLEEP. But the display_change_cb() hasn't. To make
them be consistent, display_changed_cb() now return DISPLAY_STATE_POWER_OFF
for the VCONFKEY_PM_STATE_SLEEP. And this patch also changes intergers to
vconfkey macros.

Change-Id: I357734be07d2a418769c9017123ecb24b20ae9a7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/callback.c