Fix auto visibility bug 30/164230/1
authorhyunho <hhstark.kang@samsung.com>
Mon, 18 Dec 2017 07:03:10 +0000 (16:03 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 18 Dec 2017 07:03:10 +0000 (16:03 +0900)
When watch paused by viewer pause api, auto visibility
also changed unintentionally.

Change-Id: I9a5ce7188f7191c6fc9113a8d556e46304da9b8f
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/watch_app_main.c

index 86f6adb..a295cfa 100755 (executable)
@@ -574,7 +574,6 @@ static int __on_pause(void *data)
        /* clear pre resume flag */
        __pre_resume_called = 0;
 
-       __context.watch_visibility = WVS_PAUSE;
        /* Handling the ambient mode */
        if (__context.ambient_mode)
                __context.ambient_mode_skip_resume = 1;
@@ -617,8 +616,6 @@ static void __on_pre_resume(void *data)
 static int __on_resume(void *data)
 {
        _W("_watch_core_resume");
-
-       __context.watch_visibility = WVS_RESUME;
        if (__context.viewer_visibility != AUL_SCREEN_STATUS_RESUME) {
                _D("Viewer is paused, do not resume watch");
                return APP_ERROR_NONE;