From dfe4407e64d75d883f3cc02194015581c085abf5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Feb 2022 14:29:00 +0100 Subject: [PATCH] Set AMP viewport --- app/src/main/java/eu/faircode/email/ActivityAMP.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityAMP.java b/app/src/main/java/eu/faircode/email/ActivityAMP.java index 3d1d788dbd..d5abdacc96 100644 --- a/app/src/main/java/eu/faircode/email/ActivityAMP.java +++ b/app/src/main/java/eu/faircode/email/ActivityAMP.java @@ -140,6 +140,8 @@ public class ActivityAMP extends ActivityBase { } Document d = JsoupEx.parse(html); + HtmlHelper.setViewport(d, false); + for (Element script : d.select("script")) { String src = script.attr("src"); Uri u = Uri.parse(src);