Enable size/count check during attaching 13/59413/1 accepted/tizen/mobile/20160216.002535 submit/tizen_mobile/20160215.103727
authorPrakash <prakashc.p@samsung.com>
Mon, 15 Feb 2016 10:35:46 +0000 (16:05 +0530)
committerPrakash <prakashc.p@samsung.com>
Mon, 15 Feb 2016 10:35:46 +0000 (16:05 +0530)
Change-Id: I8dbb0881ce84aedfee9e446d1d3c98f7f74fca9e
Signed-off-by: Prakash <prakashc.p@samsung.com>
src/gallery-efl.c
src/view/ge-albums.c

index 14ee0a2..064a49d 100644 (file)
@@ -432,7 +432,7 @@ static int _ge_parse_param(ge_ugdata *ugd, app_control_h service)
        }
 
        ugd->max_count = -1;
-#if 0//Tizen3.0 Build error
+
        char *max_cnt = NULL;
        app_control_get_extra_data(service, APP_CONTROL_DATA_TOTAL_COUNT, &max_cnt);
        if (max_cnt) {
@@ -440,7 +440,7 @@ static int _ge_parse_param(ge_ugdata *ugd, app_control_h service)
                GE_FREE(max_cnt);
        }
        ge_sdbg("max count: %d", ugd->max_count);
-#endif
+
        if (!ugd->overlap_mode) {
                char *indicator = NULL;
                app_control_get_extra_data(service, "indicator-state", &indicator);
index 344d3be..0179234 100644 (file)
@@ -1218,9 +1218,7 @@ __ge_launch_ug_gallery(void *data, Evas_Object *obj, void *ei)
                app_control_set_launch_mode(svc_handle, APP_CONTROL_LAUNCH_MODE_GROUP);
                app_control_set_app_id(svc_handle,  "ug-gallery-efl");
                app_control_set_mime(svc_handle, "image/*");
-#if 0//Tizen3.0 Build error
                app_control_add_extra_data(svc_handle, APP_CONTROL_DATA_TOTAL_COUNT, maximum_count);
-#endif
                app_control_add_extra_data(svc_handle, "launch-type", "select-multiple");
                app_control_add_extra_data(svc_handle, "file-type", "image");
                app_control_add_extra_data(svc_handle, "hide-personal", "true");