Fix wrong pause/resume state of wathcface 03/210903/2
authorChangwoo KIM <cw2010.kim@samsung.com>
Fri, 19 Jul 2019 04:53:35 +0000 (13:53 +0900)
committerhyunho <hhstark.kang@samsung.com>
Fri, 26 Jul 2019 01:02:05 +0000 (10:02 +0900)
commitd2135ace935693e29faef01f3990bbf577d5aa3f
treec7cdfd72375f5e0a39314062ffde1893c3e084fe
parent7c0825aec45744e558ef61dd8f4ef73cf0de7fa9
Fix wrong pause/resume state of wathcface

Considering 3 entry point for manual render start

1. Pre-Visilibity Event (Only for LCD ON State)
2. AppControl Event
3. Evas Object Move Event

For LCD Off/Evas Object Move Event case, wathcface will be paused by auto visibility check
But in case of AppControl, there is no visibility check to pause watchface.
So add new timer for 200ms to check iconify state.
Once watchface got resume on iconify state, the timer will check it's visibility and pause the watchface

Change-Id: I0a93efe1bd81306192214f5658aaffaec40159f4
Signed-off-by: hyunho <hhstark.kang@samsung.com>
packaging/libwidget_viewer.spec
watch-control/CMakeLists.txt
watch-control/src/control.c