mirror of https://github.com/M66B/FairEmail.git
Fixed replacing signatures
This commit is contained in:
parent
aab0a0987b
commit
f97cf4307a
|
@ -188,9 +188,10 @@ public class FragmentCompose extends FragmentEx {
|
||||||
String html = Html.toHtml(etBody.getText());
|
String html = Html.toHtml(etBody.getText());
|
||||||
Log.i(Helper.TAG, html);
|
Log.i(Helper.TAG, html);
|
||||||
int cstart = html.indexOf("<tt>");
|
int cstart = html.indexOf("<tt>");
|
||||||
int cend = html.indexOf("</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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue