SearchVM, SearchService: improve search UX by reducing flickering (#1117)

* Fix: don't treat PH OpeningHours with specified time as `everyDay`

* Use SnapshotStateList in SearchVM and don't clear search-results if
there are no new search results from SearchableRepositories

* Rename parameter

* mergeStateLists: refactor as extension method, add apps to SearchResults by default

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
This commit is contained in:
Christoph
2024-12-05 18:44:34 +01:00
committed by GitHub
co-authored by MM20
parent 2b08cb7413
commit 8c4bfb7dc9
9 changed files with 132 additions and 182 deletions
@@ -1,7 +1,5 @@
package de.mm20.launcher2.search
import kotlinx.coroutines.Deferred
interface Searchable {
val score: ResultScore
get() = ResultScore.Unspecified
@@ -1,6 +1,5 @@
package de.mm20.launcher2.search
import kotlinx.collections.immutable.ImmutableList
import kotlinx.coroutines.flow.Flow
interface SearchableRepository<T : Searchable> {