Renamed searchBanksByNameBankCodeOrCity() to findBanksByNameBankCodeOrCity()
This commit is contained in:
parent
61b3b53540
commit
4e0e52bd8b
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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() }
|
||||
}
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue