Simplified statement
This commit is contained in:
parent
2127c70268
commit
8f1cd4f3de
|
@ -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 { }
|
||||||
|
|
Loading…
Reference in New Issue