From f6b7c2cd2a71ec4d47b26abbd2688be55dd6edc8 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 16 May 2020 23:41:46 +0200 Subject: [PATCH] Implemented replacing umlauts --- .../src/main/java/net/dankito/banking/util/BankIconFinder.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt b/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt index 40335852..1e07b0e8 100644 --- a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt +++ b/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/BankIconFinder.kt @@ -173,6 +173,7 @@ open class BankIconFinder : IBankIconFinder { protected open fun findUrlThatContainsBankName(bankName: String, urlCandidates: List): String? { val bankNameParts = bankName.replace(",", "") .replace("-", " ") // to find 'Sparda-Bank' in 'sparda.de' + .replace("ä", "ae", true).replace("ö", "oe", true).replace("ü", "ue", true) .split(" ") .filter { it.isNullOrBlank() == false } val urlsContainsPartsOfBankName = mutableMapOf>()