[TSAM-8199] DB Check removed for Non Gallery/MyFiles app 10/91210/1 submit/tizen_3.0/20161018.073331 submit/tizen_mobile/20161006.133751
authorChandan <ch.kumar@samsung.com>
Thu, 6 Oct 2016 09:01:54 +0000 (14:31 +0530)
committerChandan <ch.kumar@samsung.com>
Thu, 6 Oct 2016 09:01:54 +0000 (14:31 +0530)
Change-Id: Id7e33c33078cd4f9274eac467dad3a03907406e2
Signed-off-by: Chandan <ch.kumar@samsung.com>
src/main/control/ivug-parameter.c
src/main/view/ivug-main-view-menu.cpp
src/main/view/ivug-main-view.cpp

index 6a5307f..476fae4 100755 (executable)
@@ -565,8 +565,9 @@ ivug_param_create_from_bundle(app_control_h service, void *ugdata)
                                        && data->view_by != IVUG_VIEW_BY_DIRECTORY) {
                                        data->view_by = IVUG_VIEW_BY_FILE;
                                }
-                               if (data->mode == IVUG_MODE_INVAILD) {
-                                       data->mode = IVUG_MODE_SINGLE;
+                                /*Behave like hidden. No need to check to the DB and No ctxPopup*/
+                               if (data->mode == IVUG_MODE_INVAILD || data->mode == IVUG_MODE_SINGLE) {
+                                       data->mode = IVUG_MODE_HIDDEN;
                                }
                                if (strstr (szFilePath, "/.") != NULL && data->mode != IVUG_MODE_EMAIL) {
                                        data->mode = IVUG_MODE_HIDDEN;
index 8075a6a..f5fd848 100755 (executable)
@@ -800,7 +800,7 @@ void on_btn_more_clicked(void *data, Evas_Object *obj, void *event_info)
        MSG_MAIN_HIGH("More clicked. Mode=%d", pMainView->mode);
 
        if (pMainView->mode == IVUG_MODE_CAMERA_SIMPLE && pMainView->cur_mitem == NULL) return;
-       if (pMainView->mode == IVUG_MODE_DISPLAY || (pMainView->mode == IVUG_MODE_SINGLE && pMainView->view_by != IVUG_VIEW_BY_ALL)) return;
+       if (pMainView->mode == IVUG_MODE_DISPLAY) return;
 
        if (gGetDestroying() == true) {
                MSG_MAIN_WARN("UG is destroying");
index ced4376..d7d4a40 100755 (executable)
@@ -2092,8 +2092,8 @@ ivug_main_view_hide_menu_bar(Ivug_MainView *pMainView)
                return;
        }
 
-       if (pMainView->mode == IVUG_MODE_EMAIL) {
-               MSG_MAIN_WARN("Launcher App is EMAIL");
+       if (pMainView->mode == IVUG_MODE_EMAIL || pMainView->mode == IVUG_MODE_HIDDEN) {
+               MSG_MAIN_WARN("DB scope not known.");
                return;
        }