Merge "[TSAM-1053] Corrected them and size logic on selection." into tizen
authorPrakashPedarla Samsung <prakashc.p@samsung.com>
Mon, 22 Feb 2016 04:47:58 +0000 (20:47 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 22 Feb 2016 04:47:58 +0000 (20:47 -0800)
1  2 
src/gallery-efl.c

@@@ -363,7 -363,15 +362,15 @@@ static int _ge_parse_param(ge_ugdata *u
        app_control_get_operation(service, &operation);
        ge_sdbg("operation [%s]", operation);
  
 -      app_control_get_extra_data(service, APPSVC_DATA_SELECTION_MODE,
+ #ifdef FEATURE_SIZE_CHECK
+               int ret = app_control_get_extra_data(service, "http://tizen.org/appcontrol/data/total_size", &(ugd->limitsize));
+               if (ret != APP_CONTROL_ERROR_NONE) {
+                       //Test data
+                       //ugd->limitsize = 2 * 1024 * 1024;
+               }
+ #endif
 +      app_control_get_extra_data(service, APP_CONTROL_DATA_SELECTION_MODE,
                                   &select_mode);
        if (select_mode) {
                if (!strcasecmp(select_mode, GE_BUNDLE_SELECTION_MODE_SINGLE)) {