From f0e95c73d0bc739e8533b992bd1f8328810ed120 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 Nov 2023 09:38:43 +0100 Subject: [PATCH] Clear WebView cache --- app/src/main/java/eu/faircode/email/ActivityAMP.java | 2 ++ app/src/main/java/eu/faircode/email/ActivityCode.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityAMP.java b/app/src/main/java/eu/faircode/email/ActivityAMP.java index 198d1fbda1..2f25b585c7 100644 --- a/app/src/main/java/eu/faircode/email/ActivityAMP.java +++ b/app/src/main/java/eu/faircode/email/ActivityAMP.java @@ -78,6 +78,8 @@ public class ActivityAMP extends ActivityBase { pbWait = findViewById(R.id.pbWait); grpReady = findViewById(R.id.grpReady); + wvAmp.clearCache(true); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); boolean overview_mode = prefs.getBoolean("overview_mode", false); boolean safe_browsing = prefs.getBoolean("safe_browsing", false); diff --git a/app/src/main/java/eu/faircode/email/ActivityCode.java b/app/src/main/java/eu/faircode/email/ActivityCode.java index 075c19698d..f43266a68e 100644 --- a/app/src/main/java/eu/faircode/email/ActivityCode.java +++ b/app/src/main/java/eu/faircode/email/ActivityCode.java @@ -106,6 +106,8 @@ public class ActivityCode extends ActivityBase { pbWait = findViewById(R.id.pbWait); grpReady = findViewById(R.id.grpReady); + wvCode.clearCache(true); + WebSettings settings = wvCode.getSettings(); settings.setBuiltInZoomControls(true);