Sending description as null for IP address. 84/142484/1 accepted/tizen/4.0/unified/20170828.224332 accepted/tizen/unified/20170811.021047 submit/tizen/20170808.043745 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100001 submit/tizen_4.0/20170828.110001
authorPriya Kohli <priya.kohli@samsung.com>
Fri, 4 Aug 2017 05:41:49 +0000 (11:11 +0530)
committerPriya Kohli <priya.kohli@samsung.com>
Fri, 4 Aug 2017 05:41:49 +0000 (11:11 +0530)
Added check for not diplaying edit box if null description is passed.

Change-Id: Ibbd0fdc9a32257272a1e6824d2a84d970063b7fc
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
sources/libraries/Common/common_ip_info.c

index b51948e..7b580e2 100755 (executable)
@@ -117,7 +117,7 @@ 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);
 
-       if (g_strcmp0(dgettext(PACKAGE, det->title), "IP address")) {
+       if (det->description) {
                snprintf(buf, MAX_LABEL_LENGTH, "%s", dgettext(PACKAGE, det->description));
                elm_object_text_set(layout, buf);
        }
@@ -907,7 +907,7 @@ static void __ip_info_toggle_item_sel_cb(void* data,
                ip_info_list_data->ip_addr_item = _add_description(
                                ip_info_list_data->genlist,
                                "IDS_WIFI_BODY_IP_ADDRESS",
-                               ip_addr,
+                               NULL,
                                ip_info_list_data->ip_toggle_item);
 
                if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
@@ -1210,7 +1210,7 @@ full_ip_info_t *ip_info_append_items(wifi_manager_ap_h ap, const char *pkg_name,
                prev_ip_info->ip_addr = g_strdup(ip_addr);
 
                ip_info_list_data->ip_addr_item = _add_description(genlist,
-                               "IDS_WIFI_BODY_IP_ADDRESS", ip_addr, NULL);
+                               "IDS_WIFI_BODY_IP_ADDRESS", NULL, NULL);
 
                if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
                        ip_info_list_data->ipv4_addr_item = _add_description(genlist,