Fix touchscreen_stop 76/223276/2
authorHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 28 Jan 2020 07:06:41 +0000 (16:06 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 28 Jan 2020 07:13:31 +0000 (16:13 +0900)
Touchscreen powersaving/enable/disable is required also for AOD mode.

Change-Id: I3602de43d76dd8c36af144e2a1633d526aca4f71
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
src/power/power-handler.h
src/touchscreen/touchscreen.c

index e09c255..ce5aa2b 100644 (file)
@@ -31,7 +31,7 @@
 #define POWER_FLAG_EXIT         "/run/deviced-shutdown-exit"
 
 // 0: None
-// 1: Power Off Popup is launched (Deviced does not support this since Tizen5.0)
+// 1: Power Off Popup is launched (not supported since Tizen5.5)
 // 2: Poweroff
 // 3: Restart
 // 4: Exit
index b564144..3f7039b 100644 (file)
@@ -184,9 +184,6 @@ static int touchscreen_start(enum device_flags flags)
 
 static int touchscreen_stop(enum device_flags flags)
 {
-       if (flags & AMBIENT_MODE)
-               return 0;
-
        /*
         * Touchscreen control priority
         *  1. Touchscreen module control by execute(touchscreen_enable)