]> git.ktnx.net Git - mobile-ledger.git/commitdiff
show comments when invoking a previous transaction
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 25 Apr 2021 16:42:31 +0000 (19:42 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 25 Apr 2021 17:07:58 +0000 (17:07 +0000)
broken in a recent release

app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionAccountRowItemHolder.java
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionHeaderItemHolder.java

index 4b0c1134c911f450099ed425f412e19679ad7751..5df1fc1f808a9fb8637d9739e20343b1cf949501 100644 (file)
@@ -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);
 
index 95a8526a3494ecaee52a7d2c68588b4c55a63b05..7725e73cfd7cfcf545b3c7c38a891492881e2240 100644 (file)
@@ -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);