mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Fixed error
This commit is contained in:
parent
6f2843baae
commit
f8150f18b5
1 changed files with 1 additions and 3 deletions
|
@ -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("<tt>");
|
||||
int cend = html.lastIndexOf("</tt>");
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue