Skip to content

Commit

Permalink
Don't trim search query
Browse files Browse the repository at this point in the history
The search query wasn't being trimmed before, and it seems better since
it saves us from results in the middle of a word if a space is pressed.
  • Loading branch information
ahmedre committed Dec 1, 2024
1 parent da59681 commit 61ef7e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class QuranDataProvider : ContentProvider() {

private fun search(query: String, databaseName: String, wantSnippets: Boolean): Cursor? {
val handler = getDatabaseHandler(context!!, databaseName, quranFileUtils)
return handler.search(query.trim(), wantSnippets, QURAN_ARABIC_DATABASE == databaseName)
return handler.search(query, wantSnippets, QURAN_ARABIC_DATABASE == databaseName)
}

override fun getType(uri: Uri): String? {
Expand Down

0 comments on commit 61ef7e8

Please sign in to comment.