LOGE("Could not set request mode. App: %s", item->pkg_id);
return;
}
- if (package_manager_request_uninstall(request, item->pkg_id, &id) != PACKAGE_MANAGER_ERROR_NONE) {
- LOGE("Could not uninstall application. App: %s", item->pkg_id);
- return;
- }
- if (package_manager_request_destroy(request) != PACKAGE_MANAGER_ERROR_NONE) {
- LOGE("Could not destroy unistall request. App: %s", item->pkg_id);
- return;
+ ret = package_manager_request_uninstall(request, item->pkg_id, &id);
+ if (ret != PACKAGE_MANAGER_ERROR_NONE) {
+ if (ret != PACKAGE_MANAGER_ERROR_NO_SUCH_PACKAGE) {
+ LOGE("Could not uninstall application. App: %s", item->pkg_id);
+ return;
+ }
+ LOGD("This application is removed on other homescreen");
+ apps_data_uninstall(item->pkg_id);
}
+
+ package_manager_request_destroy(request);
}
static void __apps_view_icon_check_changed_cb(void *data, Evas_Object *obj, const char *emission, const char *source)