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 f73217ca..553a70e8 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 @@ -139,14 +139,12 @@ class HomeFragment : Fragment() { } - private fun handleSelectedBankAccountsChanged() { - context?.asActivity()?.let { activity -> - activity.runOnUiThread { - mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions - mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions + private fun updateMenuItemsStateAndTransactionsToDisplay() { + context?.asActivity()?.runOnUiThread { + mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions + mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions - updateTransactionsToDisplayOnUiThread() - } + updateTransactionsToDisplayOnUiThread() } }