mirror of https://github.com/M66B/FairEmail.git
One Markdown watcher
This commit is contained in:
parent
3a7b8fd5ff
commit
b1623ce1f8
|
@ -7759,11 +7759,11 @@ public class FragmentCompose extends FragmentBase {
|
||||||
markdown = args.getBoolean("markdown");
|
markdown = args.getBoolean("markdown");
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
|
|
||||||
if (markwonWatcher != null)
|
if (markwonWatcher != null) {
|
||||||
|
etBody.removeTextChangedListener(markwonWatcher);
|
||||||
if (markdown)
|
if (markdown)
|
||||||
etBody.addTextChangedListener(markwonWatcher);
|
etBody.addTextChangedListener(markwonWatcher);
|
||||||
else
|
}
|
||||||
etBody.removeTextChangedListener(markwonWatcher);
|
|
||||||
|
|
||||||
etBody.setText(text[0]);
|
etBody.setText(text[0]);
|
||||||
etBody.setTag(text[0]);
|
etBody.setTag(text[0]);
|
||||||
|
|
Loading…
Reference in New Issue