mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 23:12:02 +02:00
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…
x
Reference in New Issue
Block a user