Set the local name for the headless profile 29/211429/1 accepted/tizen/unified/20190805.104333 submit/tizen/20190804.235954
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 5 Aug 2019 01:56:40 +0000 (10:56 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 5 Aug 2019 01:56:40 +0000 (10:56 +0900)
Change-Id: I943973cdce2813b4c57a3b1b6fc991588710cbb8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service-adaptation/services/adapter/bt-service-core-adapter.c

index 92f6bde..c0676e8 100644 (file)
@@ -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())