]> git.ktnx.net Git - mobile-ledger.git/commitdiff
NT: explicitly set the comment when loading a previous transaction
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 19:39:04 +0000 (22:39 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 19:39:18 +0000 (22:39 +0300)
without this the comment is still there, but the UI is not displaying
the "comment active" icon

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java

index 7d01880057901954a2f9ad4c439050531aeabc78..d20f402f806aafefa9906ec0f61044c1196b76c2 100644 (file)
@@ -263,6 +263,7 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter<NewTransactionItem
 
             item.getAccount()
                 .setAccountName(acc.getAccountName());
+            item.setComment(acc.getComment());
             if (acc.isAmountSet()) {
                 item.getAccount()
                     .setAmount(acc.getAmount());