Clear WebView cache

This commit is contained in:
M66B 2023-11-16 09:38:43 +01:00
parent fbd25d4bbb
commit f0e95c73d0
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);