Removing IP address values for Label IP address. 76/140676/3 submit/tizen/20170731.020626
authorPriya Kohli <priya.kohli@samsung.com>
Wed, 26 Jul 2017 04:04:02 +0000 (09:34 +0530)
committerPriya Kohli <priya.kohli@samsung.com>
Wed, 26 Jul 2017 11:46:31 +0000 (17:16 +0530)
Change-Id: Ie5f7d6f320df4b29e02e46eef0a8e018a59c0042
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
sources/libraries/Common/common_ip_info.c

index a2c595b..0c39338 100755 (executable)
@@ -117,8 +117,10 @@ static Evas_Object *_ip_info_detail_description_content_get(void *data,
        evas_object_size_hint_align_set(title_label, EVAS_HINT_FILL, EVAS_HINT_FILL);
        elm_object_part_content_set(layout, "elm.swallow.label", title_label);
 
-       snprintf(buf, MAX_LABEL_LENGTH, "%s", dgettext(PACKAGE, det->description));
-       elm_object_text_set(layout, buf);
+       if (g_strcmp0(dgettext(PACKAGE, det->title), "IP address")) {
+               snprintf(buf, MAX_LABEL_LENGTH, "%s", dgettext(PACKAGE, det->description));
+               elm_object_text_set(layout, buf);
+       }
 
        __COMMON_FUNC_EXIT__;
        return layout;
@@ -1186,7 +1188,7 @@ full_ip_info_t *ip_info_append_items(wifi_manager_ap_h ap, const char *pkg_name,
                ip_info_list_data->ipv4_addr_item = _add_description(genlist,
                                IPV4_LABEL, ip_addr, NULL);
 
-               if(g_strcmp0(ipv6_addr, "::"))
+               if (g_strcmp0(ipv6_addr, "::"))
                        ip_info_list_data->ipv6_addr_item = _add_description(genlist,
                                        IPV6_LABEL, ipv6_addr, NULL);