Also checking on app start-up if now no more transactions can be retrieved from bank server
This commit is contained in:
parent
1bc8a93ba4
commit
f3c1007b5e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue