mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Added fail-safe
This commit is contained in:
parent
0b30f488fe
commit
a4531a6185
1 changed files with 5 additions and 0 deletions
|
@ -4135,6 +4135,11 @@ public class FragmentCompose extends FragmentBase {
|
||||||
else
|
else
|
||||||
b = HtmlHelper.sanitizeCompose(context, body, true);
|
b = HtmlHelper.sanitizeCompose(context, body, true);
|
||||||
|
|
||||||
|
if (draft.revision == null) {
|
||||||
|
draft.revision = 1;
|
||||||
|
draft.revisions = 1;
|
||||||
|
}
|
||||||
|
|
||||||
int revision = draft.revision; // Save for undo/redo
|
int revision = draft.revision; // Save for undo/redo
|
||||||
if (dirty ||
|
if (dirty ||
|
||||||
TextUtils.isEmpty(body) ||
|
TextUtils.isEmpty(body) ||
|
||||||
|
|
Loading…
Reference in a new issue