]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix appending account entry in transaction list
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 9 Jan 2020 21:23:03 +0000 (23:23 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 9 Jan 2020 21:23:03 +0000 (23:23 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java

index 6961f97781e3cc2b23be53a39948e5439cd311cb..38d73fda4d88f6c5aa5b96777384bd52e715b478 100644 (file)
@@ -176,8 +176,10 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
                     if (row == null) {
                         LayoutInflater inflater = ((Activity) ctx).getLayoutInflater();
                         row = (LinearLayout) inflater.inflate(
-                                R.layout.transaction_list_row_accounts_table_row,
-                                holder.tableAccounts);
+                                R.layout.transaction_list_row_accounts_table_row, null);
+                        // if the rootView above is given (and the line below is spared)
+                        // the accounts remain with their default text (set in the layout resource)
+                        holder.tableAccounts.addView(row);
                     }
                     TextView accName = row.findViewById(R.id.transaction_list_acc_row_acc_name);
                     TextView accComment =