mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
searching for strings in a given note, then highlighting and looping through the string occurrences with some arrows.
This commit is contained in:
@ -77,7 +77,8 @@ class TextFragment : NoteFragment() {
|
||||
if (config!!.autosaveNotes) {
|
||||
saveText(false)
|
||||
}
|
||||
view.text_note_view.removeTextChangedListener(textWatcher)
|
||||
|
||||
removeTextWatcher()
|
||||
}
|
||||
|
||||
override fun setMenuVisibility(menuVisible: Boolean) {
|
||||
@ -154,9 +155,12 @@ class TextFragment : NoteFragment() {
|
||||
view.notes_counter.beGone()
|
||||
}
|
||||
|
||||
view.text_note_view.addTextChangedListener(textWatcher)
|
||||
setTextWatcher()
|
||||
}
|
||||
|
||||
fun setTextWatcher() = view.text_note_view.addTextChangedListener(textWatcher)
|
||||
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
|
||||
|
||||
fun updateNoteValue(value: String) {
|
||||
note?.value = value
|
||||
}
|
||||
|
Reference in New Issue
Block a user