From f8150f18b566943ae67677a7e8446d28ce5f9e71 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 15 Nov 2018 08:08:57 +0100 Subject: [PATCH] Fixed error --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index a582d4d298..98af8ce58f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -186,12 +186,10 @@ public class FragmentCompose extends FragmentEx { signature = " "; String html = Html.toHtml(etBody.getText()); - Log.i(Helper.TAG, html); int cstart = html.indexOf(""); int cend = html.lastIndexOf(""); if (cstart >= 0 && cend > cstart) { html = html.substring(0, cstart + 4) + signature + html.substring(cend); - Log.i(Helper.TAG, "tt html="+html); etBody.setText(Html.fromHtml(html)); } } @@ -1508,7 +1506,7 @@ public class FragmentCompose extends FragmentEx { Log.i(Helper.TAG, "Load action id=" + draft.id + " action=" + action); // Move draft to new account - if (draft.account != aid) { + if (draft.account != aid && aid >= 0) { Long uid = draft.uid; String msgid = draft.msgid;