added a phrase for no contents case 73/78373/2 submit/tizen/20160705.084303
authorKyoungyong Lee <bluevox@naver.com>
Tue, 5 Jul 2016 08:37:44 +0000 (17:37 +0900)
committerKyoungyong Lee <bluevox@naver.com>
Tue, 5 Jul 2016 08:39:47 +0000 (17:39 +0900)
Change-Id: I94f3db45fc45af61156e3eedb545fe7667c24ebc

ui/src/privacy_guard_package_list_view.c

index c77f38a6043a9d4b832de759b7aa82ffd2ed138e..937633e6be3aaee5238ee3d6f51519275591e106 100755 (executable)
@@ -151,9 +151,11 @@ void create_privacy_guard_package_list_view(struct app_data_s* ad)
                itc->func.del = _gl_del_cb;
 
                Elm_Object_Item *it = NULL;
+               char temp[256] = {'\0',};
                pg_item_data_s *item = calloc(sizeof(pg_item_data_s), 1);
                item->index = 0;
-               item->label = strdup("<font color=#A9A9A9FF>No Package</font>");
+               snprintf(temp, sizeof(temp), "<font color=#A9A9A9FF>No apps using %s privacy.</font>", ad->privacy);
+               item->label = strdup(temp);
 
                // append to the genlist
                it = elm_genlist_item_append(genlist, itc, item, NULL, ELM_GENLIST_ITEM_NONE, _privacy_package_selected_cb, item);