Set current name in entry of 'Rename device' popup 57/243357/1
authorKiseok Chang <kiso.chang@samsung.com>
Mon, 7 Sep 2020 04:35:39 +0000 (13:35 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Mon, 7 Sep 2020 04:36:45 +0000 (13:36 +0900)
Change-Id: I97e2fe0a5d944ce548a2ba5987826d4e3012ba3e
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
setting-about/src/setting-about-main.c

index 8b2f0b56774988a99fe0d8b23a92b09b2e69ee02..bdc4dd8367a7ca347dc012bbe8e9ba643bbe3ea9 100755 (executable)
@@ -374,6 +374,17 @@ static void __creat_name_view(void *data)
        enter_text_popup_description_set(popup, "Device names are displayed to distinguish each of the devices available via Bluetooth, Wi-Fi Direct, and other methods.");
        enter_text_popup_header_set(popup, "Name");
        enter_text_popup_guide_text_set(popup, "Device name");
+
+       char *name_value = vconf_get_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR);
+       if (name_value) {
+               char *str_name = elm_entry_utf8_to_markup(name_value);
+               FREE(name_value);
+               if (str_name) {
+                       enter_text_popup_text_set(popup, str_name);
+                       FREE(str_name);
+               }
+       }
+
        evas_object_smart_callback_add(popup, "confirmed", _device_name_accepted_popup_callback, ad);
        evas_object_smart_callback_add(popup, "rejected", _device_name_rejected_popup_callback, ad);
        evas_object_show(popup);