From 9d87529a7380ff0de8f779af0c37b53d5827ccf6 Mon Sep 17 00:00:00 2001 From: shubham kumar Date: Mon, 24 Oct 2016 19:16:36 +0530 Subject: [PATCH] [TSAM-9144] hang on decompress issue resolved Change-Id: Ic15f2e855c545d665559f07dec55408a0f3ebe46 Signed-off-by: shubham kumar --- src/widget/mf-decompress-view.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/widget/mf-decompress-view.c b/src/widget/mf-decompress-view.c index 1cba0b1..fdfb217 100644 --- a/src/widget/mf-decompress-view.c +++ b/src/widget/mf-decompress-view.c @@ -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); -- 2.7.4