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 b02c2ea4..979603f5 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 @@ -396,13 +396,13 @@ open class BankingPresenter constructor( open fun accountDisplayIndexUpdated(account: TypedCustomer) { persistAccount(account) - callAccountsChangedListeners(account) + callAccountsChangedListeners() } open fun accountUpdated(bank: TypedCustomer) { persistAccount(bank) - callAccountsChangedListeners(bank) + callAccountsChangedListeners() getBankingClientForAccount(bank)?.dataChanged(bank) } @@ -410,7 +410,7 @@ open class BankingPresenter constructor( open fun accountUpdated(account: TypedBankAccount) { persistAccount(account.customer) - callAccountsChangedListeners(account.customer as TypedCustomer) + callAccountsChangedListeners() } protected open fun persistAccount(customer: ICustomer<*, *>) { @@ -749,14 +749,6 @@ open class BankingPresenter constructor( } } - protected open fun callAccountsChangedListeners(account: TypedCustomer) { - val accounts = ArrayList(listOf(account)) - - ArrayList(accountsChangedListeners).forEach { - it(accounts) // TODO: use RxJava for this - } - } - open fun addRetrievedAccountTransactionsResponseListener(listener: (GetTransactionsResponse) -> Unit): Boolean { return retrievedAccountTransactionsResponseListeners.add(listener)