From 2127c702685aacaefd02c4c80a949da8887fb7bf Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 29 Apr 2020 22:12:47 +0200 Subject: [PATCH] Fixed that if an account gets added or deleted menu items' state and displayed account transactions get updated --- .../dankito/banking/fints4java/android/ui/home/HomeFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/home/HomeFragment.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/home/HomeFragment.kt index b5b7a686..f73217ca 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/home/HomeFragment.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/home/HomeFragment.kt @@ -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)