[TSAM-12446] Update search when SD card inserted/removed 00/109000/2
authorRavi Kiran K N <ravi.kiran@samsung.com>
Fri, 6 Jan 2017 11:54:38 +0000 (17:24 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Fri, 6 Jan 2017 11:42:56 +0000 (03:42 -0800)
Change-Id: Ic81557327f885c0aae5e428b3c75cd83add7ad77
Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
src/widget/mf-category-view.c
src/widget/mf-root-view.c

index d0f97a0..0db10a7 100644 (file)
@@ -1179,6 +1179,8 @@ void mf_category_view_create(void *data, bool flag_show)
        MF_TRACE_BEGIN;
        t_start;
        struct appdata *ap = (struct appdata *) data;
+       g_string_free(ap->mf_Status.path, TRUE);
+       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
        mf_error(">>>>>>>>> ap->mf_Status.flagViewAsRefreshView = %d",
                         ap->mf_Status.flagViewAsRefreshView);
        if (ap->mf_Status.flagViewAsRefreshView == EINA_TRUE
index 05b2c78..1892277 100644 (file)
@@ -612,6 +612,9 @@ void mf_root_view_create(void *data)
        MF_TRACE_BEGIN;
        t_start;
        struct appdata *ap = (struct appdata *) data;
+       g_string_free(ap->mf_Status.path, TRUE);
+       ap->mf_Status.path = g_string_new(PHONE_FOLDER);
+       ap->mf_Status.search_filter = NULL;
        mf_retm_if(ap == NULL, "ap is NULL");
        mf_retm_if(ap->mf_MainWindow.pNaviBar == NULL,
                           "ap->mf_MainWindow.pNaviBar is NULL");