clear only the background spans at search, not all
This commit is contained in:
parent
d52e6c875f
commit
4cdbf654ac
|
@ -58,7 +58,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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:RootTools:df729dcb13'
|
||||||
implementation 'com.github.Stericson:RootShell:1.6'
|
implementation 'com.github.Stericson:RootShell:1.6'
|
||||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
||||||
|
|
|
@ -256,7 +256,7 @@ class ReadTextActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun searchTextChanged(text: String) {
|
private fun searchTextChanged(text: String) {
|
||||||
read_text_view.text?.clearSpans()
|
read_text_view.text?.clearBackgroundSpans()
|
||||||
|
|
||||||
if (text.isNotBlank() && text.length > 1) {
|
if (text.isNotBlank() && text.length > 1) {
|
||||||
searchMatches = read_text_view.value.searchMatches(text)
|
searchMatches = read_text_view.value.searchMatches(text)
|
||||||
|
|
Loading…
Reference in New Issue