mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-09-17 00:13:33 -04:00
fix #390, make sure Undo/Redo works properly
This commit is contained in:
1 parent
82f47f13fa
commit
ed91c9d75a
1 file changed
+6
-1
@@ -169,7 +169,12 @@ class TextFragment : NoteFragment() {
|
||||
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user