Refactoring

This commit is contained in:
M66B 2022-11-25 13:33:55 +01:00
parent 2bfd5af605
commit f0096e0b8c
1 changed files with 4 additions and 3 deletions

View File

@ -7354,14 +7354,15 @@ public class FragmentCompose extends FragmentBase {
Spanned signature = null;
if (identity != null && !TextUtils.isEmpty(identity.signature)) {
Document d = HtmlHelper.sanitizeCompose(getContext(), identity.signature, true);
signature = HtmlHelper.fromDocument(getContext(), d, new HtmlHelper.ImageGetterEx() {
final Context context = getContext();
Document d = HtmlHelper.sanitizeCompose(context, identity.signature, true);
signature = HtmlHelper.fromDocument(context, d, new HtmlHelper.ImageGetterEx() {
@Override
public Drawable getDrawable(Element element) {
String source = element.attr("src");
if (source.startsWith("cid:"))
element.attr("src", "cid:");
return ImageHelper.decodeImage(getContext(),
return ImageHelper.decodeImage(context,
working, element, true, 0, 1.0f, tvSignature);
}
}, null);