From c961ff602539d56e242d0435b7c76be1613b6a21 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 15 Feb 2022 16:29:15 +0100 Subject: [PATCH] Apply overview mode to AMP --- app/src/main/java/eu/faircode/email/ActivityAMP.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityAMP.java b/app/src/main/java/eu/faircode/email/ActivityAMP.java index c175bca70e..caefaf5563 100644 --- a/app/src/main/java/eu/faircode/email/ActivityAMP.java +++ b/app/src/main/java/eu/faircode/email/ActivityAMP.java @@ -87,12 +87,13 @@ public class ActivityAMP extends ActivityBase { grpReady = findViewById(R.id.grpReady); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); + boolean overview_mode = prefs.getBoolean("overview_mode", false); boolean safe_browsing = prefs.getBoolean("safe_browsing", false); WebSettings settings = wvAmp.getSettings(); settings.setUserAgentString(WebViewEx.getUserAgent(this, wvAmp)); settings.setUseWideViewPort(true); - settings.setLoadWithOverviewMode(true); + settings.setLoadWithOverviewMode(overview_mode); settings.setBuiltInZoomControls(true); settings.setDisplayZoomControls(false);