clear only the background spans at search, not all
This commit is contained in:
parent
d52e6c875f
commit
4cdbf654ac
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.23.17'
|
||||
implementation 'com.simplemobiletools:commons:5.24.3'
|
||||
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
||||
implementation 'com.github.Stericson:RootShell:1.6'
|
||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
||||
|
|
|
@ -256,7 +256,7 @@ class ReadTextActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
private fun searchTextChanged(text: String) {
|
||||
read_text_view.text?.clearSpans()
|
||||
read_text_view.text?.clearBackgroundSpans()
|
||||
|
||||
if (text.isNotBlank() && text.length > 1) {
|
||||
searchMatches = read_text_view.value.searchMatches(text)
|
||||
|
|
Loading…
Reference in a new issue