Simplified statement

This commit is contained in:
dankito 2020-04-29 22:13:41 +02:00
parent 2127c70268
commit 8f1cd4f3de
1 changed files with 5 additions and 7 deletions

View File

@ -139,16 +139,14 @@ class HomeFragment : Fragment() {
} }
private fun handleSelectedBankAccountsChanged() { private fun updateMenuItemsStateAndTransactionsToDisplay() {
context?.asActivity()?.let { activity -> context?.asActivity()?.runOnUiThread {
activity.runOnUiThread {
mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
updateTransactionsToDisplayOnUiThread() updateTransactionsToDisplayOnUiThread()
} }
} }
}
private fun updateAccountsTransactions() { private fun updateAccountsTransactions() {
presenter.updateAccountsTransactionsAsync { } presenter.updateAccountsTransactionsAsync { }