[TSAM-9144] hang on decompress issue resolved 01/93501/1
authorshubham kumar <shubham.srib@samsung.com>
Mon, 24 Oct 2016 13:46:36 +0000 (19:16 +0530)
committershubham kumar <shubham.srib@samsung.com>
Mon, 24 Oct 2016 13:46:36 +0000 (19:16 +0530)
Change-Id: Ic15f2e855c545d665559f07dec55408a0f3ebe46
Signed-off-by: shubham kumar <shubham.srib@samsung.com>
src/widget/mf-decompress-view.c

index 1cba0b1..fdfb217 100644 (file)
@@ -206,16 +206,9 @@ static Evas_Object * __mf_decompress_view_create_content(void *data)
        mf_debug("source name is %s and %s",source_name, ap->launched_file_name);
 
        uf = unzOpen(source_name);
-       if (uf==NULL)
-       {
-               strncat(source_name,".zip", strlen(".zip"));
-               uf = unzOpen(source_name);
-       }
-
        if(uf == NULL) {
                mf_debug("unable to extract files");
                ap->mf_MainWindow.pNormalPopup = mf_popup_create_popup(data, POPMODE_TITLE_TEXT_BTN, MF_LABEL_UNABLE_TO_OPEN_FILE, MF_LABEL_NO_APP, MF_BUTTON_LABEL_OK, NULL, NULL, mf_callback_unsupported_app_cb, ap);
-               mf_callback_cancel_cb(ap,NULL,NULL);
                return NULL;
        }
 
@@ -281,6 +274,7 @@ void mf_decompress_view_create(void *data)
        ap->mf_MainWindow.pNaviBox = mf_object_create_box(ap->mf_MainWindow.pNaviLayout);
        newContent = __mf_decompress_view_create_content(ap);
        if (newContent == NULL) {
+               mf_callback_cancel_cb(ap,NULL,NULL);
                return;
        }
        evas_object_show(newContent);