From ed6fa3f426ebb3076dc68fa866f1afea3e47cd47 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 25 Apr 2021 19:42:31 +0300 Subject: [PATCH] show comments when invoking a previous transaction broken in a recent release --- .../new_transaction/NewTransactionAccountRowItemHolder.java | 4 +++- .../ui/new_transaction/NewTransactionHeaderItemHolder.java | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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); -- 2.39.5