Added the comment why the browser was prepended to list 42/44142/2
authorHyojung Jo <hj903.jo@samsung.com>
Fri, 17 Jul 2015 06:15:44 +0000 (15:15 +0900)
committerHyojung Jo <hj903.jo@samsung.com>
Fri, 17 Jul 2015 06:18:03 +0000 (15:18 +0900)
Change-Id: Ifddae6f304114ecbb70a2584471cfc2b7239e8af
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
src/data/app.c

index d93c0366a864f58e732dd5ba73a595d9d6258bee..e6ce6b7a6fb8ebfd84a8b635b8aa454492bf658d 100644 (file)
@@ -76,12 +76,11 @@ static int _get_app_data_foreach(pkgmgrinfo_appinfo_h handle, void *data)
 
        adata->is_favorite = is_favorite;
 
-       if (!strcmp(appid, STR_BROWSER_ID)) {
+       /* Browser should be displayed first according to GUI guide */
+       if (!strcmp(appid, STR_BROWSER_ID))
                *list = eina_list_prepend(*list, adata);
-               return 0;
-       }
-
-       *list = eina_list_append(*list, adata);
+       else
+               *list = eina_list_append(*list, adata);
 
        return 0;
 }