Renamed searchBanksByNameBankCodeOrCity() to findBanksByNameBankCodeOrCity()

This commit is contained in:
dankito 2020-10-04 22:05:46 +02:00
parent 61b3b53540
commit 4e0e52bd8b
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ open class BankInfoPresenter(protected val presenter: BankingPresenter, context:
lastSearchBanksJob?.cancel()
lastSearchBanksJob = GlobalScope.launch(Dispatchers.IO) {
val filteredBanks = presenter.searchBanksByNameBankCodeOrCity(query?.toString())
val filteredBanks = presenter.findBanksByNameBankCodeOrCity(query?.toString())
withContext(Dispatchers.Main) {
adapter.items = filteredBanks

View File

@ -200,7 +200,7 @@ open class AddAccountDialog(protected val presenter: BankingPresenter) : Window(
lastSearchBanksJob?.cancel()
lastSearchBanksJob = GlobalScope.launch(Dispatchers.IO) {
val filteredBanks = presenter.searchBanksByNameBankCodeOrCity(query)
val filteredBanks = presenter.findBanksByNameBankCodeOrCity(query)
withContext(Dispatchers.Main) {
txtfldBank.setAutoCompleteList(filteredBanks)

View File

@ -664,7 +664,7 @@ open class BankingPresenter(
return null
}
open fun searchBanksByNameBankCodeOrCity(query: String?): List<BankInfo> {
open fun findBanksByNameBankCodeOrCity(query: String?): List<BankInfo> {
return bankFinder.findBankByNameBankCodeOrCity(query)
.sortedBy { it.name.toLowerCase() }
}

View File

@ -89,7 +89,7 @@ struct SelectBankDialog: View {
private func findBanks(_ query: String) {
let searchResult = presenter.searchBanksByNameBankCodeOrCity(query: query)
let searchResult = presenter.findBanksByNameBankCodeOrCity(query: query)
supportedBanksSearchResults = searchResult.filter { $0.supportsFinTs3_0 }
unsupportedBanksSearchResults = searchResult.filter { $0.supportsFinTs3_0 == false }