From 19c78a2e39eb00cd39fd25834083f2151071a1a2 Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 18 Dec 2017 16:03:10 +0900 Subject: [PATCH] Fix auto visibility bug When watch paused by viewer pause api, auto visibility also changed unintentionally. Change-Id: I9a5ce7188f7191c6fc9113a8d556e46304da9b8f Signed-off-by: hyunho --- src/watch_app_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/watch_app_main.c b/src/watch_app_main.c index 86f6adb..a295cfa 100755 --- a/src/watch_app_main.c +++ b/src/watch_app_main.c @@ -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; -- 2.7.4