Fixed that if an account gets added or deleted menu items' state and displayed account transactions get updated

This commit is contained in:
dankito 2020-04-29 22:12:47 +02:00
parent d1b320307e
commit 2127c70268
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ class HomeFragment : Fragment() {
private fun initLogicAfterUiInitialized() {
presenter.addSelectedBankAccountsChangedListener { handleSelectedBankAccountsChanged() }
presenter.addAccountsChangedListener { updateMenuItemsStateAndTransactionsToDisplay() } // on account addition or deletion may menu items' state changes
presenter.addSelectedBankAccountsChangedListener { updateMenuItemsStateAndTransactionsToDisplay() }
presenter.addRetrievedAccountTransactionsResponseListener { _, response ->
handleGetTransactionsResponse(response)