fix overlapping account items in AccountsInListFragment (#1768)

This commit is contained in:
Konrad Pozniak 2020-04-27 10:38:31 +02:00 committed by GitHub
parent 89efd67015
commit 0ccd2c4133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ class AccountsInListFragment : DialogFragment(), Injectable {
if (state.searchResult == null) {
searchAdapter.submitList(listOf())
accountsSearchRecycler.hide()
accountsRecycler.show()
} else {
val listAccounts = state.accounts.asRightOrNull() ?: listOf()
val newList = state.searchResult.map { acc ->
@ -146,6 +147,7 @@ class AccountsInListFragment : DialogFragment(), Injectable {
}
searchAdapter.submitList(newList)
accountsSearchRecycler.show()
accountsRecycler.hide()
}
}