search: match file names case-insensitively

Not doing this lead to some inconsistent search results at points.

Resolves #437.
This commit is contained in:
Alexander Capehart
2023-05-11 12:21:58 -06:00
parent c7b875376c
commit b72f33a989
2 changed files with 6 additions and 2 deletions
@@ -66,8 +66,7 @@ class SearchEngineImpl @Inject constructor(@ApplicationContext private val conte
SearchEngine.Items(
songs =
items.songs?.searchListImpl(query) { q, song ->
// FIXME: Match case-insensitively
song.path.name.contains(q)
song.path.name.contains(q, ignoreCase = true)
},
albums = items.albums?.searchListImpl(query),
artists = items.artists?.searchListImpl(query),