Fix viewer sdk visibility management bug 89/199189/1
authorhyunho <hhstark.kang@samsung.com>
Thu, 7 Feb 2019 05:17:24 +0000 (14:17 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 7 Feb 2019 05:18:21 +0000 (14:18 +0900)
- watch viewer should notify it's visibility to watch application

Change-Id: I0b276bcbf58c60c62b325153245790c1bfd729bc
Signed-off-by: hyunho <hhstark.kang@samsung.com>
widget_viewer_sdk/src/main.c

index a0bbefd59503af8b9f5ba7b2bccaf107eba88535..4c0bb5540256d531a5bc72facf447edfe677690f 100644 (file)
@@ -458,12 +458,18 @@ static void app_pause(void *data)
 {
        /* WIDGET pause */
        widget_viewer_evas_notify_paused_status_of_viewer();
+       watch_manager_notify_paused_status_of_viewer();
 }
 
-static void app_resume(void *data)
+static void __resume_process()
 {
-       /* WIDGET resume */
        widget_viewer_evas_notify_resumed_status_of_viewer();
+       watch_manager_notify_resumed_status_of_viewer();
+}
+
+static void app_resume(void *data)
+{
+       __resume_process();
 }
 
 static void updated_cb(void *data, Evas_Object *obj, void *event_info)
@@ -842,7 +848,7 @@ static void _app_control(app_control_h service, void *data)
                } else if (widget_id != NULL) {
                        _run_widget(widget_id, service, lazy_loader);
                } else {
-                       widget_viewer_evas_notify_resumed_status_of_viewer();
+                       __resume_process();
                        elm_win_activate(s_info.win);
                }
        }