combine -> merge
This commit is contained in:
parent
63e5c1337c
commit
912982aba8
@ -204,9 +204,7 @@ class AppRepositoryImpl(
|
|||||||
|
|
||||||
override fun search(query: String): Flow<List<Application>> = channelFlow {
|
override fun search(query: String): Flow<List<Application>> = channelFlow {
|
||||||
|
|
||||||
combine(installedApps, hiddenItems, installations) {_, _, _ ->
|
merge(installedApps, hiddenItems, installations).collectLatest {
|
||||||
null
|
|
||||||
}.collectLatest {
|
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
val appResults = mutableListOf<Application>()
|
val appResults = mutableListOf<Application>()
|
||||||
if (query.isEmpty()) {
|
if (query.isEmpty()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user