mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-20 13:17:08 +00:00
One Markdown watcher
This commit is contained in:
parent
3a7b8fd5ff
commit
b1623ce1f8
1 changed files with 3 additions and 3 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue