mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 02:36:24 -04:00
Improved the search functionality to match the exact word that is typed.
This commit is contained in:
parent
d26c1d7daf
commit
7d2b73da8d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user