static char *__package_id;
static bool __fg_signal;
static char *__viewer_endpoint;
+static bool __is_permanent;
static void __call_update_cb(const char *class_id, const char *id, int force,
const char *content_raw);
EXPORT_API int widget_base_exit(void)
{
appcore_multiwindow_base_exit();
- aul_notify_exit();
+ if (appcore_multiwindow_base_instance_get_cnt() != 0 && __is_permanent)
+ aul_notify_exit();
return 0;
}
LOGD("%s is destroyed %d", id, reason);
if (reason == WIDGET_BASE_DESTROY_TYPE_PERMANENT) {
+ __is_permanent = true;
event = WIDGET_INSTANCE_EVENT_DESTROY;
aul_widget_instance_del(class_id, id);
} else {
+ __is_permanent = false;
__send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_EXTRA_UPDATED,
content_info);