From 4e0e52bd8bcc18605622e681aa982f347a4c386e Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 4 Oct 2020 22:05:46 +0200 Subject: [PATCH] Renamed searchBanksByNameBankCodeOrCity() to findBanksByNameBankCodeOrCity() --- .../banking/ui/android/adapter/presenter/BankInfoPresenter.kt | 2 +- .../net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt | 2 +- .../kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt | 2 +- .../BankingiOSApp/ui/dialogs/SelectBankDialog.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/adapter/presenter/BankInfoPresenter.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/adapter/presenter/BankInfoPresenter.kt index 5341850a..3bfeed07 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/adapter/presenter/BankInfoPresenter.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/adapter/presenter/BankInfoPresenter.kt @@ -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 diff --git a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt index ef7a9594..07adf759 100755 --- a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt +++ b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt @@ -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) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt index e4b51cd0..d7fdea20 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt @@ -664,7 +664,7 @@ open class BankingPresenter( return null } - open fun searchBanksByNameBankCodeOrCity(query: String?): List { + open fun findBanksByNameBankCodeOrCity(query: String?): List { return bankFinder.findBankByNameBankCodeOrCity(query) .sortedBy { it.name.toLowerCase() } } diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/SelectBankDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/SelectBankDialog.swift index 32581a3e..ad23d17a 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/SelectBankDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/SelectBankDialog.swift @@ -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 }