Fix the scan button disapearing bug 67/71967/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 02:45:44 +0000 (11:45 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 02:45:44 +0000 (11:45 +0900)
'ugd->navi_it' value was overwritten in the profile view. Because of this
we can't show the scan button after re-enabling BT in the main view.

Change-Id: I1b3b2268cd3927f8004b7d0b8b7ecbbea7d1d1cb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/ui/bt-profile-view.c

index 14693e2..e106d23 100644 (file)
@@ -1922,7 +1922,8 @@ void _bt_profile_create_view(bt_dev_t *dev_info)
        navi_it = elm_naviframe_item_push(vd->navi_bar, BT_STR_DETAILS,
                                        back_button, NULL, genlist, NULL);
 
-       ugd->navi_it = navi_it;
+       vd->navi_it = navi_it;
+
        evas_object_smart_callback_add(back_button, "clicked", __bt_profile_back_cb, ugd);
 
        elm_naviframe_prev_btn_auto_pushed_set(vd->navi_bar, EINA_FALSE);
@@ -1930,7 +1931,6 @@ void _bt_profile_create_view(bt_dev_t *dev_info)
        elm_naviframe_item_pop_cb_set(navi_it, __bt_profile_back_clicked_cb,
                                                                ugd);
 
-       vd->navi_it = navi_it;
 
        FN_END;