fix: text not getting trimmed whilst searching

Signed-off-by: VishnuSanal <t.v.s10123@gmail.com>
This commit is contained in:
VishnuSanal 2023-03-07 20:53:10 +05:30
parent 86ca6d577e
commit f5df22e45d
No known key found for this signature in database
GPG key ID: 14262D60A80C0214

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) {