Extracted BankAccount.displayNameIncludingBankName
This commit is contained in:
parent
b4fc9d837f
commit
c6f821d162
|
@ -21,7 +21,7 @@ open class BankAccount @JvmOverloads constructor(
|
|||
|
||||
val displayName: String
|
||||
get() {
|
||||
var displayName = "${account.bank.name} ${identifier}"
|
||||
var displayName = identifier
|
||||
subAccountNumber?.let {
|
||||
displayName += " ($it)"
|
||||
}
|
||||
|
@ -29,6 +29,9 @@ open class BankAccount @JvmOverloads constructor(
|
|||
return displayName
|
||||
}
|
||||
|
||||
val displayNameIncludingBankName: String
|
||||
get() = "${account.bank.name} ${displayName}"
|
||||
|
||||
var bookedTransactions: List<AccountTransaction> = bookedAccountTransactions
|
||||
protected set
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ open class BankAccountsAdapter(bankAccounts: List<BankAccount>) : ListAdapter<Ba
|
|||
val view = convertView ?: inflater?.inflate(R.layout.list_item_bank_account, parent, false)
|
||||
|
||||
view?.let {
|
||||
view.txtBankAccountDisplayName.text = item.displayName
|
||||
view.txtBankAccountDisplayName.text = item.displayNameIncludingBankName
|
||||
}
|
||||
|
||||
return view
|
||||
|
|
Loading…
Reference in New Issue