|
|
|
@ -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() {
|
|
|
|
|