Call tick before resume
authorhyunho <hhstark.kang@samsung.com>
Thu, 6 Sep 2018 07:55:53 +0000 (16:55 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 12 Sep 2018 05:15:11 +0000 (14:15 +0900)
Change-Id: I488b98a15a3e697764a9a39b7cabf65cfd07d973
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/base/watch_base.c

index fda3db5..54d5148 100755 (executable)
@@ -612,6 +612,13 @@ static int __on_ui_base_resume(void *data)
        if (__state != WS_PAUSED && __state != WS_CREATED)
                return APP_ERROR_NONE;
 
+       if (!watch_tick) {
+               __time_tick_cb(data);
+       } else {
+               __time_tick_cancel();
+               __time_tick_cb(data);
+       }
+
        if (__context.callback.resume)
                __context.callback.resume(__context.data);