From 374d196c7105347bbf27609e80617650be6f134d Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 6 Aug 2020 02:15:34 +0200 Subject: [PATCH] Adjusted to new method names --- .../kotlin/net/dankito/banking/bankfinder/LuceneBankFinder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/LuceneBankFinder/src/main/kotlin/net/dankito/banking/bankfinder/LuceneBankFinder.kt b/tools/LuceneBankFinder/src/main/kotlin/net/dankito/banking/bankfinder/LuceneBankFinder.kt index af75a17d..6b8fae1a 100644 --- a/tools/LuceneBankFinder/src/main/kotlin/net/dankito/banking/bankfinder/LuceneBankFinder.kt +++ b/tools/LuceneBankFinder/src/main/kotlin/net/dankito/banking/bankfinder/LuceneBankFinder.kt @@ -153,7 +153,7 @@ open class LuceneBankFinder(indexFolder: File) : BankFinderBase(), IBankFinder { protected open fun updateIndex(bankListFileHash: String) { try { - val banks = loadBankListFile() + val banks = loadBankList() // while indexing - which takes a long time on Android - use InMemoryBankFinder so that user sees at least some search results even though it's slower bankFinderWhileUpdatingIndex = InMemoryBankFinder(banks) @@ -201,7 +201,7 @@ open class LuceneBankFinder(indexFolder: File) : BankFinderBase(), IBankFinder { protected open fun calculateCurrentBankListFileHash(): String { - return calculateHash(readBankListFile()) + return calculateHash(BankListDeserializer().readBankListFile()) } protected open fun calculateHash(stringToHash: String): String {