Merge pull request #392 from VishnuSanal/dev

fix: text not getting trimmed whilst searching
This commit is contained in:
Alexander Capehart 2023-03-07 16:00:42 +00:00 committed by GitHub
commit bde4035654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ class SearchFragment : ListFragment<Music, FragmentSearchBinding>() {
binding.searchEditText.apply {
addTextChangedListener { text ->
// Run the search with the updated text as the query
searchModel.search(text?.toString())
searchModel.search(text?.toString()?.trim())
}
if (!launchedKeyboard) {