Skip to content

Commit 4cdbf65

Browse files
committed
clear only the background spans at search, not all
1 parent d52e6c8 commit 4cdbf65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ android {
5858
}
5959

6060
dependencies {
61-
implementation 'com.simplemobiletools:commons:5.23.17'
61+
implementation 'com.simplemobiletools:commons:5.24.3'
6262
implementation 'com.github.Stericson:RootTools:df729dcb13'
6363
implementation 'com.github.Stericson:RootShell:1.6'
6464
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class ReadTextActivity : SimpleActivity() {
256256
}
257257

258258
private fun searchTextChanged(text: String) {
259-
read_text_view.text?.clearSpans()
259+
read_text_view.text?.clearBackgroundSpans()
260260

261261
if (text.isNotBlank() && text.length > 1) {
262262
searchMatches = read_text_view.value.searchMatches(text)

0 commit comments

Comments
 (0)