From dad04d767172d91446f344d0c69fa9b20120b129 Mon Sep 17 00:00:00 2001 From: Christine Emrich Date: Thu, 10 Dec 2015 13:58:34 +0100 Subject: [PATCH] Enabled web storage inside webview to fix redirect to mobile versions of heise.de articles. --- .../owncloudnewsreader/NewsDetailFragment.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java index 9e6598c3..8eb81ebe 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java @@ -225,24 +225,13 @@ public class NewsDetailFragment extends Fragment { mWebView.setBackgroundColor(backgroundColor); WebSettings webSettings = mWebView.getSettings(); - //webSettings.setPluginState(WebSettings.PluginState.ON); webSettings.setJavaScriptEnabled(true); webSettings.setAllowFileAccess(true); - //webSettings.setPluginsEnabled(true); - //webSettings.setDomStorageEnabled(true); - + webSettings.setDomStorageEnabled(true); webSettings.setJavaScriptCanOpenWindowsAutomatically(false); webSettings.setSupportMultipleWindows(false); webSettings.setSupportZoom(false); - //webSettings.setRenderPriority(WebSettings.RenderPriority.HIGH); - //webSettings.setSavePassword(false); - //webview.setVerticalScrollBarEnabled(false); - //webview.setHorizontalScrollBarEnabled(false); webSettings.setAppCacheEnabled(true); - //webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); - //webSettings.setAppCacheMaxSize(200); - //webSettings.setDatabaseEnabled(true); - //webview.clearCache(true); registerForContextMenu(mWebView);