mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-11-06 13:03:03 -05:00
fix jumping between search occurrences at the editor
This commit is contained in:
1 parent
83e1322812
commit
d52e6c875f
1 file changed
+1
-2
+1
-2
@@ -98,7 +98,6 @@ class ReadTextActivity : SimpleActivity() {
|
||||
private fun openSearch() {
|
||||
isSearchActive = true
|
||||
search_wrapper.beVisible()
|
||||
|
||||
showKeyboard(searchQueryET)
|
||||
|
||||
read_text_view.requestFocus()
|
||||
@@ -260,7 +259,7 @@ class ReadTextActivity : SimpleActivity() {
|
||||
read_text_view.text?.clearSpans()
|
||||
|
||||
if (text.isNotBlank() && text.length > 1) {
|
||||
searchMatches = text.searchMatches(read_text_view.value)
|
||||
searchMatches = read_text_view.value.searchMatches(text)
|
||||
read_text_view.highlightText(text, config.primaryColor)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user