- int transaction_id = cursor.getInt(0);
- String dateString = cursor.getString(1);
- Date date = Globals.parseLedgerDate(dateString);
-
- if (!lastDateString.equals(dateString)) {
- boolean showMonth = (date.getMonth() != lastDate.getMonth() ||
- date.getYear() != lastDate.getYear());
- newList.add(new TransactionListItem(date, showMonth));
- }
- newList.add(
- new TransactionListItem(new LedgerTransaction(transaction_id), odd));
-// Log.d("UTT", String.format("got transaction %d", transaction_id));
-
- lastDate = date;
- lastDateString = dateString;
- odd = !odd;
+ accumulator.put(new LedgerTransaction(cursor.getInt(0)),
+ new SimpleDate(cursor.getInt(1), cursor.getInt(2), cursor.getInt(3)));