clear only the background spans at search, not all

This commit is contained in:
tibbi 2020-03-29 16:45:48 +02:00
parent d52e6c875f
commit 4cdbf654ac
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

@ -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)