mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Fixed styling signature editor
This commit is contained in:
@@ -289,8 +289,10 @@ public class ActivitySignature extends ActivityBase {
|
||||
etText.setText(null);
|
||||
else if (etText.isRaw())
|
||||
etText.setText(html);
|
||||
else
|
||||
etText.setText(HtmlHelper.fromHtml(html, new HtmlHelper.ImageGetterEx() {
|
||||
else {
|
||||
Document d = JsoupEx.parse(html);
|
||||
d = HtmlHelper.sanitizeView(this, d, true);
|
||||
Spanned signature = HtmlHelper.fromDocument(this, d, new HtmlHelper.ImageGetterEx() {
|
||||
@Override
|
||||
public Drawable getDrawable(Element element) {
|
||||
String source = element.attr("src");
|
||||
@@ -299,7 +301,9 @@ public class ActivitySignature extends ActivityBase {
|
||||
return ImageHelper.decodeImage(ActivitySignature.this,
|
||||
-1, element, true, 0, 1.0f, etText);
|
||||
}
|
||||
}, null, this));
|
||||
}, null);
|
||||
etText.setText(signature);
|
||||
}
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user