X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FTransactionListItem.java;h=55fe04ac7f224c0603e92c74e328a7a9d35227cc;hp=7694578e8578effd36b9ac9c713b1f771c484c7c;hb=11c8dff16901782f69287854cb4788ddf8d932c2;hpb=2f70894493fc78bfde4801a8bf1189c3516235da diff --git a/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java b/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java index 7694578e..55fe04ac 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java @@ -26,14 +26,16 @@ public class TransactionListItem { private Date date; private boolean monthShown; private LedgerTransaction transaction; + private boolean odd; public TransactionListItem(Date date, boolean monthShown) { this.type = Type.DELIMITER; this.date = date; this.monthShown = monthShown; } - public TransactionListItem(LedgerTransaction transaction) { + public TransactionListItem(LedgerTransaction transaction, boolean isOdd) { this.type = Type.TRANSACTION; this.transaction = transaction; + this.odd = isOdd; } @NonNull public Type getType() { @@ -48,5 +50,8 @@ public class TransactionListItem { public LedgerTransaction getTransaction() { return transaction; } + public boolean isOdd() { + return odd; + } public enum Type {TRANSACTION, DELIMITER} }