mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-03 02:01:05 +02:00
fix #390, make sure Undo/Redo works properly
This commit is contained in:
parent
82f47f13fa
commit
ed91c9d75a
@ -169,7 +169,12 @@ class TextFragment : NoteFragment() {
|
|||||||
setTextWatcher()
|
setTextWatcher()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setTextWatcher() = view.text_note_view.addTextChangedListener(textWatcher)
|
fun setTextWatcher() {
|
||||||
|
view.text_note_view.apply {
|
||||||
|
removeTextChangedListener(textWatcher)
|
||||||
|
addTextChangedListener(textWatcher)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
|
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user