Refactoring

pull/214/head
M66B 1 year ago
parent aaafe78bef
commit c2eeb6c9cc

@ -94,7 +94,6 @@ public class ActivityAMP extends ActivityBase {
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
settings.setAllowFileAccess(false);
settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
@ -106,6 +105,7 @@ public class ActivityAMP extends ActivityBase {
settings.setLoadsImagesAutomatically(true);
settings.setBlockNetworkLoads(false);
settings.setBlockNetworkImage(false);
settings.setAllowFileAccess(false);
settings.setJavaScriptEnabled(true);
wvAmp.setWebViewClient(new WebViewClient() {

@ -113,13 +113,13 @@ public class ActivityCode extends ActivityBase {
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);
settings.setAllowFileAccess(false);
settings.setCacheMode(WebSettings.LOAD_CACHE_ONLY);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_NEVER_ALLOW);
settings.setLoadsImagesAutomatically(false);
settings.setBlockNetworkLoads(true);
settings.setBlockNetworkImage(true);
settings.setAllowFileAccess(false);
settings.setJavaScriptEnabled(true);
setDarkMode();

Loading…
Cancel
Save