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