Improved formatting

This commit is contained in:
M66B
2019-02-10 12:01:21 +00:00
parent cba389c103
commit 07a0bd7bde
10 changed files with 109 additions and 59 deletions

View File

@@ -5,7 +5,6 @@ import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.text.Spanned;
import android.view.View;
import android.widget.TextView;
@@ -101,10 +100,10 @@ public class ActivityEml extends ActivityBase {
.append(apart.disposition).append(' ')
.append(apart.filename);
}
result.parts = Html.fromHtml(sb.toString());
result.parts = HtmlHelper.fromHtml(sb.toString());
String html = HtmlHelper.sanitize(parts.getHtml(context), true);
result.body = Html.fromHtml(html);
result.body = HtmlHelper.fromHtml(html);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
mmessage.writeTo(bos);