mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-11 17:30:39 +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() {
|
private fun openSearch() {
|
||||||
isSearchActive = true
|
isSearchActive = true
|
||||||
search_wrapper.beVisible()
|
search_wrapper.beVisible()
|
||||||
|
|
||||||
showKeyboard(searchQueryET)
|
showKeyboard(searchQueryET)
|
||||||
|
|
||||||
read_text_view.requestFocus()
|
read_text_view.requestFocus()
|
||||||
@ -260,7 +259,7 @@ class ReadTextActivity : SimpleActivity() {
|
|||||||
read_text_view.text?.clearSpans()
|
read_text_view.text?.clearSpans()
|
||||||
|
|
||||||
if (text.isNotBlank() && text.length > 1) {
|
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)
|
read_text_view.highlightText(text, config.primaryColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user