Merge pull request #392 from VishnuSanal/dev
fix: text not getting trimmed whilst searching
This commit is contained in:
commit
bde4035654
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class SearchFragment : ListFragment<Music, FragmentSearchBinding>() {
|
||||||
binding.searchEditText.apply {
|
binding.searchEditText.apply {
|
||||||
addTextChangedListener { text ->
|
addTextChangedListener { text ->
|
||||||
// Run the search with the updated text as the query
|
// Run the search with the updated text as the query
|
||||||
searchModel.search(text?.toString())
|
searchModel.search(text?.toString()?.trim())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!launchedKeyboard) {
|
if (!launchedKeyboard) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue