From: DoHyun Pyun Date: Mon, 5 Aug 2019 01:56:40 +0000 (+0900) Subject: Set the local name for the headless profile X-Git-Tag: accepted/tizen/unified/20190805.104333^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F211429%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Set the local name for the headless profile Change-Id: I943973cdce2813b4c57a3b1b6fc991588710cbb8 Signed-off-by: DoHyun Pyun --- diff --git a/bt-service-adaptation/services/adapter/bt-service-core-adapter.c b/bt-service-adaptation/services/adapter/bt-service-core-adapter.c index 92f6bde..c0676e8 100644 --- a/bt-service-adaptation/services/adapter/bt-service-core-adapter.c +++ b/bt-service-adaptation/services/adapter/bt-service-core-adapter.c @@ -1182,14 +1182,14 @@ static gboolean __bt_adapter_post_set_enabled(gpointer user_data) BT_ERR("Fail to set discoverable mode"); } else { __bt_set_visible_mode(); + } - /* add the vconf noti handler */ - if (0 != vconf_notify_key_changed(VCONFKEY_SETAPPL_DEVICE_NAME_STR, - (vconf_callback_fn)__bt_phone_name_changed_cb, NULL)) - BT_ERR("DEVICE_NAME key changed notification registration failed"); + /* add the vconf noti handler */ + if (0 != vconf_notify_key_changed(VCONFKEY_SETAPPL_DEVICE_NAME_STR, + (vconf_callback_fn)__bt_phone_name_changed_cb, NULL)) + BT_ERR("DEVICE_NAME key changed notification registration failed"); - __bt_set_local_name(); - } + __bt_set_local_name(); /* Get All properties */ if (OAL_STATUS_SUCCESS != adapter_get_properties())