mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
enabling dom storage api
This commit is contained in:
parent
12cd1ba651
commit
bd897d856c
4 changed files with 7 additions and 3 deletions
|
@ -367,6 +367,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
mLoginWebView.getSettings().setAllowFileAccess(false);
|
||||
mLoginWebView.getSettings().setJavaScriptEnabled(true);
|
||||
mLoginWebView.getSettings().setDomStorageEnabled(true);
|
||||
mLoginWebView.getSettings().setUserAgentString(getWebLoginUserAgent());
|
||||
mLoginWebView.getSettings().setSaveFormData(false);
|
||||
mLoginWebView.getSettings().setSavePassword(false);
|
||||
|
|
|
@ -110,7 +110,8 @@ public class ExternalSiteWebView extends FileActivity {
|
|||
webSettings.setAllowFileAccess(false);
|
||||
|
||||
// enable javascript
|
||||
webview.getSettings().setJavaScriptEnabled(true);
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setDomStorageEnabled(true);
|
||||
|
||||
final Activity activity = this;
|
||||
final ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar);
|
||||
|
|
|
@ -271,6 +271,7 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
|
|||
|
||||
WebView webView = (WebView) v.findViewById(R.id.whatsNewWebView);
|
||||
webView.getSettings().setJavaScriptEnabled(true);
|
||||
webView.getSettings().setDomStorageEnabled(true);
|
||||
webView.getSettings().setAllowFileAccess(false);
|
||||
webView.setWebViewClient(new WebViewClient());
|
||||
webView.loadUrl(mWebUrl);
|
||||
|
|
|
@ -138,6 +138,7 @@ public class SamlWebViewDialog extends DialogFragment {
|
|||
|
||||
WebSettings webSettings = mSsoWebView.getSettings();
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setDomStorageEnabled(true);
|
||||
webSettings.setSavePassword(false);
|
||||
webSettings.setUserAgentString(MainApp.getUserAgent());
|
||||
webSettings.setSaveFormData(false);
|
||||
|
@ -184,8 +185,8 @@ public class SamlWebViewDialog extends DialogFragment {
|
|||
@Override
|
||||
public void onDestroyView() {
|
||||
Log_OC.v(TAG, "onDestroyView");
|
||||
|
||||
if ((ViewGroup)mSsoWebView.getParent() != null) {
|
||||
|
||||
if (mSsoWebView.getParent() != null) {
|
||||
((ViewGroup)mSsoWebView.getParent()).removeView(mSsoWebView);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue