fix N_SE-24422. reset thread list after cancel search
authorDowon Park <dowon.park@samsung.com>
Wed, 6 Feb 2013 10:07:45 +0000 (19:07 +0900)
committerDowon Park <dowon.park@samsung.com>
Wed, 6 Feb 2013 10:07:45 +0000 (19:07 +0900)
Change-Id: Ie72245143e9283a8ec3a6a15a1112af4d9d84f21

thread/src/msg-ui-thread-callback.c

index 425084f..b97c8d0 100755 (executable)
@@ -867,31 +867,8 @@ void msg_ui_thread_searchbar_cancel_click_cb(void *data, Evas_Object *obj, void
                pListData->search_timer = NULL;
        }
 
-       entry = elm_object_part_content_get(pListData->searchbar, "elm.swallow.content");
-       elm_object_text_set(entry, "");
-       elm_object_signal_emit(pListData->searchbar, "elm,state,guidetext,show", "elm");
        evas_object_hide(obj);
-       elm_object_signal_emit(pListData->searchbar, "cancel,out", "");
-       elm_object_focus_set(entry, EINA_FALSE);
-
-       pListData->search_mode = THREAD_SEARCH_OFF;
-       elm_genlist_mode_set(pListData->genlist, ELM_LIST_SCROLL);
-
-       if (pListData->list_type== THREAD_NORMAL_LIST_TYPE)
-               msg_ui_thread_list_load(pListData, FALSE);
-       else
-               msg_ui_thread_msg_list_load(pListData, pListData->list_type);
-
-       if (msg_ui_thread_rotation_get() == false) {
-               evas_object_show(pListData->search_btn);
-               elm_object_item_part_content_set(pListData->nf_it, "title_right_btn", pListData->search_btn);
-
-               edje_object_signal_emit(_EDJ(pListData->content_ly), "hide_searchbar", "sel_all");
-               elm_object_part_content_unset(pListData->content_ly, "sel_all");
-               evas_object_hide(pListData->searchbar);
-
-               msg_ui_thread_show_toolbar(pListData);
-       }
+       msg_ui_thread_cancel_search_mode(pListData);
 
        D_LEAVE;
 }