From f7f88d4ae2538f0238a2f233e6c0e580f9c74612 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 30 May 2016 11:45:44 +0900 Subject: [PATCH] Fix the scan button disapearing bug '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 --- src/ui/bt-profile-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/bt-profile-view.c b/src/ui/bt-profile-view.c index 14693e2..e106d23 100644 --- a/src/ui/bt-profile-view.c +++ b/src/ui/bt-profile-view.c @@ -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; -- 2.7.4