1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Formatting protected content

This commit is contained in:
M66B 2022-11-13 19:45:37 +01:00
parent 3675a2e4ae
commit 62161cf556

View file

@ -272,13 +272,15 @@ public class ProtectedContent {
String html = ProtectedContent.fromUri(context, uri, password);
return HtmlHelper.fromHtml(html, new HtmlHelper.ImageGetterEx() {
Document d = JsoupEx.parse(html);
d = HtmlHelper.sanitizeView(context, d, true);
return HtmlHelper.fromDocument(context, d, new HtmlHelper.ImageGetterEx() {
@Override
public Drawable getDrawable(Element element) {
return ImageHelper.decodeImage(context,
-1, element, true, 0, 1.0f, tvContent);
}
}, null, context);
}, null);
}
@Override