properly remove the notes text change listener

This commit is contained in:
tibbi 2018-01-26 20:27:36 +01:00
parent f698d784de
commit 7f15b8c07a
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}