properly remove the notes text change listener
This commit is contained in:
parent
f698d784de
commit
7f15b8c07a
|
@ -84,7 +84,7 @@ class NoteFragment : Fragment() {
|
|||
if (config.showWordCount || !config.autosaveNotes) {
|
||||
view.notes_view.addTextChangedListener(textWatcher)
|
||||
} else {
|
||||
view.notes_view.addTextChangedListener(null)
|
||||
view.notes_view.removeTextChangedListener(textWatcher)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue