static int __default_height;
static screen_connector_toolkit_evas_h __toolkit;
static screen_connector_toolkit_evas_h __rid_toolkit;
+static screen_connector_toolkit_evas_h __tmp_toolkit;
static Evas_Object *__win;
static char *__watch_appid;
__rid_toolkit = NULL;
__is_bound = false;
}
+
+ if (__tmp_toolkit) {
+ screen_connector_toolkit_evas_remove(__tmp_toolkit);
+ __tmp_toolkit = NULL;
+ }
}
static void __screen_connector_toolkit_evas_updated_cb(
char *viewer = NULL;
char *pid_str = NULL;
screen_connector_toolkit_evas_ops ops;
+ bool exist;
bundle_get_str(envelope, AUL_K_WIDGET_VIEWER, &viewer);
if (viewer == NULL)
_D("cur appid(%s), new appid(%s), pid(%s)",
__watch_appid, appid, pid_str);
- if (__toolkit)
+ exist = screen_connector_toolkit_is_exist(appid,
+ SCREEN_CONNECTOR_SCREEEN_TYPE_WATCH);
+
+ if (exist) {
screen_connector_toolkit_evas_remove(__toolkit);
+ } else {
+ __tmp_toolkit = __toolkit;
+ _D("Old toolkit %p", __tmp_toolkit);
+ }
ops.added_cb = __screen_connector_toolkit_evas_added_cb;
ops.removed_cb = __screen_connector_toolkit_evas_removed_cb;