struct appdata* ap = (struct appdata *)data;
SAFE_FREE_OBJ(ap->mf_MainWindow.pContextPopup);
- if (mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str) == MYFILE_OTG) {
+ char *temp_path = g_strdup(ap->mf_Status.path->str);
+ mf_util_to_lower(temp_path);
+ if ((mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str) == MYFILE_OTG) || (temp_path && strstr(temp_path, "usb"))) {
+ SAFE_FREE_G_CHAR(temp_path);
return;
}
+ SAFE_FREE_G_CHAR(temp_path);
+
Evas_Object *ctxpopup = NULL;
ctxpopup = elm_ctxpopup_add(ap->mf_MainWindow.pWindow);
elm_object_style_set(ctxpopup, "more/default");
#include "mf-edit-view.h"
#include "mf-object.h"
#include "mf-search-view.h"
+#include "mf-popup.h"
#include <unzip.h>
#include <mime_type.h>
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;
}
ap->mf_MainWindow.pNaviBox = mf_object_create_box(ap->mf_MainWindow.pNaviLayout);
newContent = __mf_decompress_view_create_content(ap);
+ if (newContent == NULL) {
+ return;
+ }
evas_object_show(newContent);
int location = mf_fm_svc_wrapper_is_root_path(ap->mf_Status.path->str);