mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
clear only background spans of some views, not all
This commit is contained in:
@ -334,7 +334,7 @@ class MainActivity : SimpleActivity() {
|
||||
view_pager.onPageChangeListener {
|
||||
currentTextFragment?.removeTextWatcher()
|
||||
currentNotesView()?.let { noteView ->
|
||||
noteView.text.clearSpans()
|
||||
noteView.text.clearBackgroundSpans()
|
||||
}
|
||||
|
||||
closeSearch()
|
||||
@ -354,7 +354,7 @@ class MainActivity : SimpleActivity() {
|
||||
private fun searchTextChanged(text: String) {
|
||||
currentNotesView()?.let { noteView ->
|
||||
currentTextFragment?.removeTextWatcher()
|
||||
noteView.text.clearSpans()
|
||||
noteView.text.clearBackgroundSpans()
|
||||
|
||||
if (text.isNotBlank() && text.length > 1) {
|
||||
searchMatches = noteView.value.searchMatches(text)
|
||||
|
Reference in New Issue
Block a user