Skip to content

Commit 7f15b8c

Browse files
committed
properly remove the notes text change listener
1 parent f698d78 commit 7f15b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class NoteFragment : Fragment() {
8484
if (config.showWordCount || !config.autosaveNotes) {
8585
view.notes_view.addTextChangedListener(textWatcher)
8686
} else {
87-
view.notes_view.addTextChangedListener(null)
87+
view.notes_view.removeTextChangedListener(textWatcher)
8888
}
8989
}
9090

0 commit comments

Comments
 (0)