Improved the search functionality to match the exact word that is typed.

This commit is contained in:
MohitMaliFtechiz 2024-03-01 14:30:15 +05:30 committed by Kelson
parent d26c1d7daf
commit 7d2b73da8d

View File

@ -272,7 +272,7 @@ class SearchFragment : BaseFragment() {
private fun getSearchListItemForQuery(query: String): SearchListItem? =
searchAdapter?.items?.firstOrNull {
it.value.equals(query, ignoreCase = true)
it.value == query
}
private suspend fun render(state: SearchState) {