We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f47f1 commit ed91c9dCopy full SHA for ed91c9d
app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt
@@ -169,7 +169,12 @@ class TextFragment : NoteFragment() {
169
setTextWatcher()
170
}
171
172
- fun setTextWatcher() = view.text_note_view.addTextChangedListener(textWatcher)
+ fun setTextWatcher() {
173
+ view.text_note_view.apply {
174
+ removeTextChangedListener(textWatcher)
175
+ addTextChangedListener(textWatcher)
176
+ }
177
178
179
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
180
0 commit comments