summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2016-10-20 16:24:17 +0900
committertaeyoung <ty317.kim@samsung.com>2016-10-20 16:24:17 +0900
commitf31967a457187c7058e617c1f6ee17e4a6e24316 (patch)
treeffd43714873cde463b7099925de5a70b488e67f8
parent6115ee36e85e6f7f5f02a00a0d77790b0fb0fd71 (diff)
downloaddeviced-f31967a457187c7058e617c1f6ee17e4a6e24316.tar.gz
deviced-f31967a457187c7058e617c1f6ee17e4a6e24316.tar.bz2
deviced-f31967a457187c7058e617c1f6ee17e4a6e24316.zip
- If the next state of display is same with the current state, display timeout cannot be reset since there is no timeout with this state change. No time occurs the display state change. - When display timeout is set 0 by setting app, Alwayson is enabled and the next state of LCDON is changed to LCDON. Thus display is turned on during turning off the display (before updating display state) - The issue is fixed by skipping update the next state of the LCDON even if Alwayson is enabled. Change-Id: Icd38221374789a63e2d01222ef3f3eed1b283968 Signed-off-by: taeyoung <ty317.kim@samsung.com>
-rw-r--r--src/display/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/display/core.c b/src/display/core.c
index e04ea8b3..0aa2bd2b 100644
--- a/src/display/core.c
+++ b/src/display/core.c
@@ -733,11 +733,9 @@ static void update_display_time(void)
* if the run_timeout is zero, it regards AlwaysOn state
*/
if (run_timeout == 0 || display_conf.lcd_always_on) {
- trans_table[S_NORMAL][EVENT_TIMEOUT] = S_NORMAL;
run_timeout = ALWAYS_ON_TIMEOUT;
_I("LCD Always On");
- } else
- trans_table[S_NORMAL][EVENT_TIMEOUT] = S_LCDDIM;
+ }
states[S_NORMAL].timeout = run_timeout;