From: Damyan Ivanov Date: Thu, 23 Jan 2020 19:47:36 +0000 (+0200) Subject: include posting comment in transaction hash X-Git-Tag: v0.12.0~96 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=ca3f055618327ec7e12ad7e23705e0909c96e0dc;p=mobile-ledger.git include posting comment in transaction hash so that changes in comment at the source reaches the DB --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java index 24527892..9df2b7e2 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java @@ -129,6 +129,8 @@ public class LedgerTransaction { data.append(item.getCurrency()); data.append('\0'); data.append(item.getAmount()); + data.append('\0'); + data.append(item.getComment()); } sha.update(data.toString() .getBytes(Charset.forName("UTF-8")));