From 29ee1b163daca14f28d007d9efa9b44a796a223d Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 1 Sep 2019 09:31:18 +0200 Subject: [PATCH] Removed size limit --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 3d97882931..f84d1da5ef 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -78,7 +78,6 @@ import static androidx.core.text.HtmlCompat.TO_HTML_PARAGRAPH_LINES_CONSECUTIVE; public class HtmlHelper { static final int PREVIEW_SIZE = 250; // characters - private static final int MAX_SIZE = 100 * 1024; // characters private static final int MAX_LINKS = 500; private static final int TRACKING_PIXEL_SURFACE = 25; // pixels @@ -91,11 +90,6 @@ public class HtmlHelper { Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory); static String sanitize(Context context, String html, boolean show_images) { - if (html.length() > MAX_SIZE) { - Log.i("Message size=" + html.length()); - return "" + context.getString(R.string.title_hint_too_complex) + ""; - } - Document parsed = Jsoup.parse(html); //