Data: Fixed the code for not showing 'nodisplay' app 75/42775/1
authorHyojung Jo <hj903.jo@samsung.com>
Thu, 2 Jul 2015 07:55:13 +0000 (16:55 +0900)
committerHyojung Jo <hj903.jo@samsung.com>
Thu, 2 Jul 2015 07:55:13 +0000 (16:55 +0900)
Change-Id: I4a1cda5aed0c296dcf6b2ab5ba6f95729c3c8b10
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
src/data/app.c

index 67dff4067602fa18c9afebc9580246cc1a68936b..031a7d01845ae43e95ff0f9dc49dbe51846538ce 100644 (file)
@@ -33,7 +33,7 @@ static int _get_app_data_foreach(pkgmgrinfo_appinfo_h handle, void *data)
        Eina_List **list;
        struct app_data *adata;
        char *appid, *name, *icon;
-       bool is_favorite;
+       bool is_favorite, nodisplay;
        int r;
 
        if (!data)
@@ -41,6 +41,12 @@ static int _get_app_data_foreach(pkgmgrinfo_appinfo_h handle, void *data)
 
        list = (Eina_List **)data;
 
+       if (pkgmgrinfo_appinfo_is_nodisplay(handle, &nodisplay) != PMINFO_R_OK)
+               return -1;
+
+       if (nodisplay)
+               return 0;
+
        if (pkgmgrinfo_appinfo_get_appid(handle, &appid) != PMINFO_R_OK)
                return -1;