Fixed error

This commit is contained in:
M66B 2018-11-15 08:08:57 +01:00
parent 6f2843baae
commit f8150f18b5
1 changed files with 1 additions and 3 deletions

View File

@ -186,12 +186,10 @@ public class FragmentCompose extends FragmentEx {
signature = " "; signature = " ";
String html = Html.toHtml(etBody.getText()); String html = Html.toHtml(etBody.getText());
Log.i(Helper.TAG, html);
int cstart = html.indexOf("<tt>"); int cstart = html.indexOf("<tt>");
int cend = html.lastIndexOf("</tt>"); int cend = html.lastIndexOf("</tt>");
if (cstart >= 0 && cend > cstart) { if (cstart >= 0 && cend > cstart) {
html = html.substring(0, cstart + 4) + signature + html.substring(cend); html = html.substring(0, cstart + 4) + signature + html.substring(cend);
Log.i(Helper.TAG, "tt html="+html);
etBody.setText(Html.fromHtml(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); Log.i(Helper.TAG, "Load action id=" + draft.id + " action=" + action);
// Move draft to new account // Move draft to new account
if (draft.account != aid) { if (draft.account != aid && aid >= 0) {
Long uid = draft.uid; Long uid = draft.uid;
String msgid = draft.msgid; String msgid = draft.msgid;