One Markdown watcher

This commit is contained in:
M66B 2024-02-22 20:46:43 +01:00
parent 3a7b8fd5ff
commit b1623ce1f8
1 changed files with 3 additions and 3 deletions

View File

@ -7759,11 +7759,11 @@ public class FragmentCompose extends FragmentBase {
markdown = args.getBoolean("markdown");
invalidateOptionsMenu();
if (markwonWatcher != null)
if (markwonWatcher != null) {
etBody.removeTextChangedListener(markwonWatcher);
if (markdown)
etBody.addTextChangedListener(markwonWatcher);
else
etBody.removeTextChangedListener(markwonWatcher);
}
etBody.setText(text[0]);
etBody.setTag(text[0]);