fix overlapping account items in AccountsInListFragment (#1768)
This commit is contained in:
parent
89efd67015
commit
0ccd2c4133
|
@ -139,6 +139,7 @@ class AccountsInListFragment : DialogFragment(), Injectable {
|
||||||
if (state.searchResult == null) {
|
if (state.searchResult == null) {
|
||||||
searchAdapter.submitList(listOf())
|
searchAdapter.submitList(listOf())
|
||||||
accountsSearchRecycler.hide()
|
accountsSearchRecycler.hide()
|
||||||
|
accountsRecycler.show()
|
||||||
} else {
|
} else {
|
||||||
val listAccounts = state.accounts.asRightOrNull() ?: listOf()
|
val listAccounts = state.accounts.asRightOrNull() ?: listOf()
|
||||||
val newList = state.searchResult.map { acc ->
|
val newList = state.searchResult.map { acc ->
|
||||||
|
@ -146,6 +147,7 @@ class AccountsInListFragment : DialogFragment(), Injectable {
|
||||||
}
|
}
|
||||||
searchAdapter.submitList(newList)
|
searchAdapter.submitList(newList)
|
||||||
accountsSearchRecycler.show()
|
accountsSearchRecycler.show()
|
||||||
|
accountsRecycler.hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue