Fix device_display_get_state() to consider VCONFKEY_PM_STATE_SLEEP 46/224346/1 accepted/tizen/unified/20200211.055754 submit/tizen/20200210.060410
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 10 Feb 2020 04:59:10 +0000 (13:59 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 10 Feb 2020 04:59:10 +0000 (13:59 +0900)
Change-Id: I28d795a81e3ec44ef28731d5bc6abc37f03f05df
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
src/display.c

index 3e23386..6be39bb 100644 (file)
@@ -204,7 +204,7 @@ int device_display_get_state(display_state_e *state)
                *state = DISPLAY_STATE_NORMAL;
        else if (val == VCONFKEY_PM_STATE_LCDDIM)
                *state = DISPLAY_STATE_SCREEN_DIM;
-       else if (val == VCONFKEY_PM_STATE_LCDOFF)
+       else if (val == VCONFKEY_PM_STATE_LCDOFF || val == VCONFKEY_PM_STATE_SLEEP)
                *state = DISPLAY_STATE_SCREEN_OFF;
        else
                return DEVICE_ERROR_OPERATION_FAILED;