From: Kiseok Chang Date: Mon, 7 Sep 2020 04:35:39 +0000 (+0900) Subject: Set current name in entry of 'Rename device' popup X-Git-Tag: submit/tizen/20200907.072419~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c086771b7be939860c88977d762119192bba3c7c;p=profile%2Fcommon%2Fapps%2Fnative%2Fsettings.git Set current name in entry of 'Rename device' popup Change-Id: I97e2fe0a5d944ce548a2ba5987826d4e3012ba3e Signed-off-by: Kiseok Chang --- diff --git a/setting-about/src/setting-about-main.c b/setting-about/src/setting-about-main.c index 8b2f0b5..bdc4dd8 100755 --- a/setting-about/src/setting-about-main.c +++ b/setting-about/src/setting-about-main.c @@ -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);