Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: search artist names
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhasDissa committed Nov 1, 2023
1 parent f2730ec commit 472fe85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ class LocalMusicRepository(
suspend fun getSearchResult(query: String): List<Song> {
val lowerQuery = query.lowercase()
return getAllSongs().filter {
it.title.lowercase().contains(lowerQuery)
it.title.lowercase().contains(lowerQuery) || it.artistsText?.lowercase()
?.contains(lowerQuery) == true
}
}

Expand Down

0 comments on commit 472fe85

Please sign in to comment.