mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-23 11:47:26 +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) {
|
if (config.showWordCount || !config.autosaveNotes) {
|
||||||
view.notes_view.addTextChangedListener(textWatcher)
|
view.notes_view.addTextChangedListener(textWatcher)
|
||||||
} else {
|
} else {
|
||||||
view.notes_view.addTextChangedListener(null)
|
view.notes_view.removeTextChangedListener(textWatcher)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user