From: Hyunho Kang Date: Thu, 17 Aug 2017 08:24:50 +0000 (+0900) Subject: Send viewer visibility when launching watch app X-Git-Tag: accepted/tizen/3.0/common/20170818.112414^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F144617%2F2;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Send viewer visibility when launching watch app Change-Id: Ia1325d2ba6d1766a80aeca456332d706f5579989 Signed-off-by: Hyunho Kang --- diff --git a/watch-control/src/control.c b/watch-control/src/control.c index 2fb4bd0..4a12577 100644 --- a/watch-control/src/control.c +++ b/watch-control/src/control.c @@ -75,7 +75,7 @@ static unsigned int __watch_rid; static bool __manual_render; static bool __iconified = false; static bool __is_bound = false; -static int __viewer_visibility = AUL_SCREEN_STATUS_PAUSE; +static int __viewer_visibility = AUL_SCREEN_STATUS_RESUME; static GList *__dead_cbs; struct dead_cb_s { @@ -369,6 +369,7 @@ static void __screen_connector_toolkit_evas_added_cb(const char *appid, const ch evas_object_data_set(__win, "tbm,watch", image); screen_connector_toolkit_evas_get_rid(image, (int *)&__watch_rid); __flush_pending_queue(__watch_rid); + __change_viewer_visibility(__viewer_visibility, false); } static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const char *instance_id, int pid, @@ -488,6 +489,8 @@ API int watch_manager_get_app_control(const char *app_id, app_control_h *app_con app_control_add_extra_data(*app_control, "WATCH_WIDTH", buf); snprintf(buf, sizeof(buf), "%d", __watch_screen_get_height()); app_control_add_extra_data(*app_control, "WATCH_HEIGHT", buf); + snprintf(buf, sizeof(buf), "%d", __viewer_visibility); + app_control_add_extra_data(*app_control, "WATCH_VIEWER_VISIBILITY", buf); app_control_set_operation(*app_control, APP_CONTROL_OPERATION_MAIN);