Name: ug-setting-manage-applications-efl
Summary: Manage Application package
-Version: 0.0.60
+Version: 0.0.61
Release: 0
Group: Applications/System
License: Flora Software License
bool nodisplay;\r
bool removable;\r
bool taskmanage;\r
+\r
+ char *main_appid;\r
};\r
\r
void mgrapp_view_list_create(void *data);\r
void mgrapp_view_info_create(char *pkg_name, void *data);\r
void mgrapp_view_info_update(void *data);\r
void mgrapp_view_info_destroy(void *data);\r
-\r
+void mgrapp_view_list_update_by_uninstall(const char *pkg_type, const char *pkg_name, void *data);\r
\r
#ifdef __cplusplus\r
}\r
ret_if(app_info->pkg_name == NULL);
bool is_running = false;
int ret = APP_MANAGER_ERROR_NONE;
+ struct ug_data *ugd = NULL;
-
- ret = app_manager_is_running(app_info->pkg_name, &is_running);
+ ret = app_manager_is_running(app_info->main_appid, &is_running);
switch (ret) {
case APP_MANAGER_ERROR_NONE:
MGR_APP_DEBUG("is_running APP_MANAGER_ERROR_NONE");
}
if (is_running) {
- MGR_APP_DEBUG("%s app_is_running", app_info->pkg_name);
+ MGR_APP_DEBUG("%s app_is_running", app_info->main_appid);
app_context_h app_context = {0, };
- ret = app_manager_get_app_context(app_info->pkg_name, &app_context);
+ ret = app_manager_get_app_context(app_info->main_appid, &app_context);
switch (ret) {
case APP_MANAGER_ERROR_NONE:
MGR_APP_DEBUG("get_app_context APP_MANAGER_ERROR_NONE");
MGR_APP_DEBUG("default");
break;
}
+ ugd = evas_object_data_get(_genlist, STR_UGD);
+ mgrapp_view_list_update_by_uninstall(app_info->pkg_type, app_info->pkg_name, (void*)ugd);
} else {
- MGR_APP_DEBUG("%s app is not running", app_info->pkg_name);
+ MGR_APP_DEBUG("%s app is not running", app_info->main_appid);
}
if (app_info->taskmanage) {
bool is_running = false;
- int ret = app_manager_is_running(app_info->pkg_name, &is_running);
+ int ret = app_manager_is_running(app_info->main_appid, &is_running);
switch (ret) {
case APP_MANAGER_ERROR_NONE:
MGR_APP_MEM_FREE(app_info->pkg_name);
MGR_APP_MEM_FREE(app_info->pkg_type);
MGR_APP_MEM_FREE(app_info->icon_path);
+ MGR_APP_MEM_FREE(app_info->main_appid);
_installed_list = g_list_remove(_installed_list, app_info);
}
MGR_APP_MEM_FREE(app_info->pkg_label);
MGR_APP_MEM_FREE(app_info->pkg_type);
MGR_APP_MEM_FREE(app_info->icon_path);
+ MGR_APP_MEM_FREE(app_info->main_appid);
//MGR_APP_MEM_FREE(app_info);
#endif
goto end;
}
MGR_APP_DEBUG("main_appid: %s", main_appid);
+ MGR_APP_MEM_STRDUP(app_info->main_appid, main_appid);
r = pkgmgrinfo_appinfo_get_appinfo(main_appid, &appinfo_h);
if (r < 0) {
MGR_APP_END();
}
-static void mgrapp_view_list_update_by_uninstall(const char *pkg_type, const char *pkg_name, void *data)
+void mgrapp_view_list_update_by_uninstall(const char *pkg_type, const char *pkg_name, void *data)
{
MGR_APP_BEGIN();
MGR_APP_DEBUG("genlist %d app_info->pkg_label: %s", i, app_info->pkg_label);
if (LIST_SEG_TYPE_RUNNING == seg
- && APP_MANAGER_ERROR_NONE == app_manager_is_running(app_info->pkg_name, &is_running)
+ && APP_MANAGER_ERROR_NONE == app_manager_is_running(app_info->main_appid, &is_running)
&& false == is_running) {
continue;
}