Fixed error

pull/146/head
M66B 6 years ago
parent 6f2843baae
commit f8150f18b5

@ -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;

Loading…
Cancel
Save