Not showing bank name any more when selecting account for transferring money, icon should be in most cases sufficient to see to which bank this account belongs and doesn't use that much space

This commit is contained in:
dankito 2020-08-06 16:16:27 +02:00
parent cbed0e7758
commit 54595abc1e
3 changed files with 2 additions and 5 deletions

View File

@ -22,7 +22,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.displayNameIncludingBankName view.txtBankAccountDisplayName.text = item.displayName
setIcon(item, view.imgBankIcon) setIcon(item, view.imgBankIcon)
} }

View File

@ -113,7 +113,7 @@ open class TransferMoneyDialog @JvmOverloads constructor(
fixedHeight = TextFieldHeight fixedHeight = TextFieldHeight
cellFormat { cellFormat {
text = it.displayNameIncludingBankName text = it.displayName
it.customer.iconUrl?.let { iconUrl -> it.customer.iconUrl?.let { iconUrl ->
graphic = ImageView(iconUrl)?.apply { graphic = ImageView(iconUrl)?.apply {

View File

@ -52,9 +52,6 @@ open class BankAccount @JvmOverloads constructor(
return identifier return identifier
} }
open val displayNameIncludingBankName: String
get() = "${customer.bankName} ${displayName}"
open fun addBookedTransactions(retrievedBookedTransactions: List<AccountTransaction>) { open fun addBookedTransactions(retrievedBookedTransactions: List<AccountTransaction>) {
val uniqueTransactions = this.bookedTransactions.toMutableSet() val uniqueTransactions = this.bookedTransactions.toMutableSet()