Fixed that if an account gets added or deleted menu items' state and displayed account transactions get updated
This commit is contained in:
parent
d1b320307e
commit
2127c70268
|
@ -128,7 +128,8 @@ class HomeFragment : Fragment() {
|
||||||
|
|
||||||
|
|
||||||
private fun initLogicAfterUiInitialized() {
|
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 ->
|
presenter.addRetrievedAccountTransactionsResponseListener { _, response ->
|
||||||
handleGetTransactionsResponse(response)
|
handleGetTransactionsResponse(response)
|
||||||
|
|
Loading…
Reference in New Issue