display: check if the LCDAlwaysOn is set before changing next state 39/57139/1 accepted/tizen/mobile/20160118.084542 accepted/tizen/tv/20160118.084610 accepted/tizen/wearable/20160118.084634 submit/tizen/20160118.054528
authorTaeyoung Kim <ty317.kim@samsung.com>
Fri, 15 Jan 2016 09:57:49 +0000 (18:57 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Fri, 15 Jan 2016 09:57:49 +0000 (18:57 +0900)
Change-Id: I87fcb34e1395b7abbdfc52b5af8f411f3fe58ed9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/display/core.c

index d3cb7f5..fb5fa43 100644 (file)
@@ -666,7 +666,7 @@ static void update_display_time(void)
        /* for sdk
         * if the run_timeout is zero, it regards AlwaysOn state
         */
-       if (run_timeout == 0) {
+       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");