From 19fcbf282371be2254e30c7705ab63baebd6b36e Mon Sep 17 00:00:00 2001 From: dankl Date: Sat, 25 Jan 2020 20:25:01 +0100 Subject: [PATCH] Fixed updating mnitmSearchTransactions and mnitmUpdateTransactions visibility state --- .../banking/fints4java/android/ui/home/HomeFragment.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 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 73c234b4..2aa41f95 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 @@ -133,8 +133,6 @@ class HomeFragment : Fragment() { } private fun initLogicAfterUiInitialized() { - presenter.addAccountsChangedListener { handleAccountsChanged() } - presenter.addSelectedBankAccountsChangedListener { handleSelectedBankAccountsChanged() } presenter.addRetrievedAccountTransactionsResponseListener { _, response -> @@ -145,18 +143,12 @@ class HomeFragment : Fragment() { } - private fun handleAccountsChanged() { + private fun handleSelectedBankAccountsChanged() { context?.asActivity()?.let { activity -> activity.runOnUiThread { mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions - } - } - } - private fun handleSelectedBankAccountsChanged() { - context?.asActivity()?.let { activity -> - activity.runOnUiThread { updateTransactionsToDisplayOnUiThread() } }