From efef382c51093857048545223e4202622ee42792 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Jan 2021 08:19:56 +0100 Subject: [PATCH] Use browser's default font --- .../main/java/eu/faircode/email/AdapterMessage.java | 4 +--- app/src/main/java/eu/faircode/email/WebViewEx.java | 13 +------------ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index a51e9d8823..d04a6ca768 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1984,9 +1984,7 @@ public class AdapterMessage extends RecyclerView.Adapter position, - float textSize, boolean monospaced, - IWebView intf) { + void init(int height, float size, Pair position, IWebView intf) { Log.i("Init height=" + height + " size=" + size); this.height = (height == 0 ? getMinimumHeight() : height); @@ -84,14 +81,6 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC setScrollY(position.second); } - WebSettings settings = getSettings(); - if (textSize != 0) { - settings.setDefaultFontSize(Math.round(textSize)); - settings.setDefaultFixedFontSize(Math.round(textSize)); - } - if (monospaced) - settings.setStandardFontFamily("monospace"); - this.intf = intf; setWebViewClient(new WebViewClient() {