Fixed updating mnitmSearchTransactions and mnitmUpdateTransactions visibility state
This commit is contained in:
parent
90ce8be25d
commit
19fcbf2823
|
@ -133,8 +133,6 @@ class HomeFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initLogicAfterUiInitialized() {
|
private fun initLogicAfterUiInitialized() {
|
||||||
presenter.addAccountsChangedListener { handleAccountsChanged() }
|
|
||||||
|
|
||||||
presenter.addSelectedBankAccountsChangedListener { handleSelectedBankAccountsChanged() }
|
presenter.addSelectedBankAccountsChangedListener { handleSelectedBankAccountsChanged() }
|
||||||
|
|
||||||
presenter.addRetrievedAccountTransactionsResponseListener { _, response ->
|
presenter.addRetrievedAccountTransactionsResponseListener { _, response ->
|
||||||
|
@ -145,18 +143,12 @@ class HomeFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun handleAccountsChanged() {
|
private fun handleSelectedBankAccountsChanged() {
|
||||||
context?.asActivity()?.let { activity ->
|
context?.asActivity()?.let { activity ->
|
||||||
activity.runOnUiThread {
|
activity.runOnUiThread {
|
||||||
mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
|
mnitmSearchTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
|
||||||
mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
|
mnitmUpdateTransactions.isVisible = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun handleSelectedBankAccountsChanged() {
|
|
||||||
context?.asActivity()?.let { activity ->
|
|
||||||
activity.runOnUiThread {
|
|
||||||
updateTransactionsToDisplayOnUiThread()
|
updateTransactionsToDisplayOnUiThread()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue