if (ret != APP_CONTROL_ERROR_NONE) {
ge_dbgE("Setting the Media type failed");
}
+
+ if (ugd->max_count != -1) {
+ char count[1024] = {};
+ snprintf(count, 1024, "%d", ugd->max_count);
+ ret = app_control_add_extra_data(service, APP_CONTROL_DATA_TOTAL_COUNT, strdup(count));
+ }
ret = app_control_send_launch_request(service, __ge_appcontrol_select_result_cb, (void *)ugd);
app_control_destroy(service);
item = eina_list_nth(ugd->data_list, date_item->index);
int number_of_items_on_particular_date = _get_count_of_items_on_same_date(item, ugd->data_list, &text, date_item->index + 1);
int i;
+
+
int corrupt_count =0;
for (i = date_item->index; i < (date_item->index +number_of_items_on_particular_date); i++) {
item = eina_list_nth(ugd->data_list, i);
corrupt_count++;
}
}
+ if (date_item->check_state == true) {
+ if (ugd->max_count > 0 && (number_of_items_on_particular_date - corrupt_count) > ugd->max_count) {
+ char *noti = NULL;
+ char *noti_str = GE_STR_MAXIMUM_COUNT;
+ noti = g_strdup_printf(noti_str, ugd->max_count);
+ _ge_ui_create_notiinfo(noti);
+ GE_GFREEIF(noti);
+ date_item->check_state = EINA_FALSE;
+ return;
+ }
+ }
if (date_item->check_state && corrupt_count == number_of_items_on_particular_date) {
date_item->check_state = EINA_FALSE;
elm_check_state_set(ugd->sel_all_ck, ugd->ck_state);
}
+ if (ugd->ck_state == true) {
+ if (ugd->max_count > 0 && (ugd->count - ugd->unsupported_cnt) > ugd->max_count) {
+ char *noti = NULL;
+ char *noti_str = GE_STR_MAXIMUM_COUNT;
+ noti = g_strdup_printf(noti_str, ugd->max_count);
+ _ge_ui_create_notiinfo(noti);
+ GE_GFREEIF(noti);
+ ugd->ck_state = EINA_FALSE;
+ if (ugd->sel_all_ck) {
+ elm_check_state_set(ugd->sel_all_ck, ugd->ck_state);
+ }
+ return;
+ }
+ }
if ((ugd->count - ugd->unsupported_cnt) <= 0) {
ugd->ck_state = EINA_FALSE;
elm_check_state_set(ugd->sel_all_ck, ugd->ck_state);