|
|
@ -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() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|