From 8f1cd4f3de3739e5169aa30ee4c3061fb98d8aaa Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 29 Apr 2020 22:13:41 +0200 Subject: [PATCH] Simplified statement --- .../fints4java/android/ui/home/HomeFragment.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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() } }