]> git.ktnx.net Git - mobile-ledger.git/commitdiff
when determining whether to bold an account, use "starts with" relation instead of...
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 15 Jan 2019 19:51:05 +0000 (19:51 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 15 Jan 2019 19:51:05 +0000 (19:51 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java

index 6c245644d55db2742ca11d5ef7796c31a75d8461..88d043a6fe6988a587901119ecebfc9a20ce5fae 100644 (file)
@@ -191,7 +191,9 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
 //                            acc.getAccountName(), acc.getAmount()));
 
                     String boldAccountName = step.getBoldAccountName();
-                    if ((boldAccountName != null) && boldAccountName.equals(acc.getAccountName())) {
+                    if ((boldAccountName != null) &&
+                        acc.getAccountName().startsWith(boldAccountName))
+                    {
                         accName.setTypeface(null, Typeface.BOLD);
                         accAmount.setTypeface(null, Typeface.BOLD);
                         accName.setTextColor(Globals.primaryDark);