mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-19 12:26:13 -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? =
|
private fun getSearchListItemForQuery(query: String): SearchListItem? =
|
||||||
searchAdapter?.items?.firstOrNull {
|
searchAdapter?.items?.firstOrNull {
|
||||||
it.value.equals(query, ignoreCase = true)
|
it.value == query
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun render(state: SearchState) {
|
private suspend fun render(state: SearchState) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user