+ if (isCancelled())
+ return null;
+
+ int transaction_id = cursor.getInt(0);
+ SimpleDate date =
+ new SimpleDate(cursor.getInt(1), cursor.getInt(2), cursor.getInt(3));
+
+ if (null == latestDate)
+ latestDate = date;
+ earliestDate = date;
+
+ if (!date.equals(lastDate)) {
+ boolean showMonth =
+ (date.month != lastDate.month) || (date.year != lastDate.year);
+ newList.add(new TransactionListItem(date, showMonth));
+ }
+ newList.add(
+ new TransactionListItem(new LedgerTransaction(transaction_id), odd));
+// debug("UTT", String.format("got transaction %d", transaction_id));