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() {
context?.asActivity()?.let { activity ->
activity.runOnUiThread {
private fun updateMenuItemsStateAndTransactionsToDisplay() {
context?.asActivity()?.runOnUiThread {
mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
updateTransactionsToDisplayOnUiThread()
}
}
}
private fun updateAccountsTransactions() {
presenter.updateAccountsTransactionsAsync { }