mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-06 05:13:37 +01:00
fix jumping between search occurrences at the editor
This commit is contained in:
parent
83e1322812
commit
d52e6c875f
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user