Change-Id: I68d26729f4dba8ca599fbd36f7b1406cda7a7881
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
int r;
struct datamgr_item *di;
struct datamgr *dm;
+ bool nodisplay;
if (!data) {
_ERR("Invalid argument");
rdata = data;
dm = user_data;
- if (!strcmp(rdata->id, PACKAGE))
- return;
-
r = pkgmgrinfo_appinfo_get_appinfo(rdata->id, &handle);
if (r != PMINFO_R_OK) {
_ERR("failed to get app info");
return;
}
+ r = pkgmgrinfo_appinfo_is_nodisplay(handle, &nodisplay);
+ if (r != PMINFO_R_OK || nodisplay) {
+ pkgmgrinfo_appinfo_destroy_appinfo(handle);
+ return;
+ }
+
label = NULL;
thumb = NULL;
r = pkgmgrinfo_appinfo_get_label(handle, &label);