Fix initial viewer visibility value 32/150932/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 10 Jul 2017 00:28:15 +0000 (09:28 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Tue, 19 Sep 2017 05:56:26 +0000 (14:56 +0900)
If the viewer doesn't manage the watch visibility manullay,
the watch-application cannot go to resume state when the application is paused.
Because, the viewer_visibility value is the unknown value.
This patch is to fix the initial value.

Change-Id: I1b265cca0e63aae402e9a4ad4ab0bc58f8b3949b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
src/watch_app_main.c

index 416e5d5..346849e 100755 (executable)
@@ -796,7 +796,7 @@ EXPORT_API int watch_app_main(int argc, char **argv,
        __context.callback = *callback;
        __context.width = width;
        __context.height = height;
-       __context.viewer_visibility = -1;
+       __context.viewer_visibility = AUL_SCREEN_STATUS_RESUME;
        __context.watch_visibility = WVS_UNKNOWN;
        __context.ambient_mode = false;
        __context.ambient_mode_skip_resume = false;