From ca3f055618327ec7e12ad7e23705e0909c96e0dc Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 23 Jan 2020 21:47:36 +0200 Subject: [PATCH] include posting comment in transaction hash so that changes in comment at the source reaches the DB --- .../java/net/ktnx/mobileledger/model/LedgerTransaction.java | 2 ++ 1 file changed, 2 insertions(+) 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"))); -- 2.39.5