From: Damyan Ivanov Date: Sun, 25 Apr 2021 16:42:31 +0000 (+0300) Subject: show comments when invoking a previous transaction X-Git-Tag: v0.18.0~19 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=ed6fa3f426ebb3076dc68fa866f1afea3e47cd47;p=mobile-ledger.git show comments when invoking a previous transaction broken in a recent release --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java index 4b0c1134..5df1fc1f 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java @@ -526,7 +526,9 @@ class NewTransactionAccountRowItemHolder extends NewTransactionItemViewHolder { acc.isAmountSet() ? String.format("%4.2f", acc.getAmount()) : null); displayAmountValidity(true); - b.comment.setText(acc.getComment()); + final String comment = acc.getComment(); + b.comment.setText(comment); + styleComment(b.comment, comment); setEditable(true); diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionHeaderItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionHeaderItemHolder.java index 95a8526a..7725e73c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionHeaderItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionHeaderItemHolder.java @@ -323,8 +323,9 @@ class NewTransactionHeaderItemHolder extends NewTransactionItemViewHolder (TransactionDescriptionAutocompleteAdapter) a); } - b.transactionComment.setText(head.getComment()); - //styleComment(b.transactionComment, head.getComment()); + final String comment = head.getComment(); + b.transactionComment.setText(comment); + styleComment(b.transactionComment, comment); // would hide or make it visible setEditable(true);