Also checking on app start-up if now no more transactions can be retrieved from bank server

This commit is contained in:
dankito 2020-09-22 04:02:52 +02:00
parent 1bc8a93ba4
commit f3c1007b5e
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ open class BankingPresenter(
val newClient = bankingClientCreator.createClient(customer, dataFolder, asyncRunner, callback)
addClientForAccount(customer, newClient)
customer.accounts.forEach { account ->
if (account.haveAllTransactionsBeenFetched == false && didFetchAllTransactionsStoredOnBankServer(account, listOf())) {
account.haveAllTransactionsBeenFetched = true // no need to save account, just delays app start-up, as even if account doesn't get saved during app run, haveAllTransactionsBeenFetched gets restored on next app run
}
}
}
callAccountsChangedListeners()