Merge pull request 'Enable DOM storage so account authorization pages requiring \local storage work.' (#282) from nolan/Fedilab:enable-dom-storage into develop
Reviewed-on: https://codeberg.org/tom79/Fedilab/pulls/282
This commit is contained in:
commit
21ccde5c6a
|
@ -133,6 +133,7 @@ public class WebviewConnectActivity extends BaseActivity {
|
||||||
binding.webviewConnect.getSettings().setJavaScriptEnabled(true);
|
binding.webviewConnect.getSettings().setJavaScriptEnabled(true);
|
||||||
String user_agent = sharedpreferences.getString(getString(R.string.SET_CUSTOM_USER_AGENT), Helper.USER_AGENT);
|
String user_agent = sharedpreferences.getString(getString(R.string.SET_CUSTOM_USER_AGENT), Helper.USER_AGENT);
|
||||||
binding.webviewConnect.getSettings().setUserAgentString(user_agent);
|
binding.webviewConnect.getSettings().setUserAgentString(user_agent);
|
||||||
|
binding.webviewConnect.getSettings().setDomStorageEnabled(true);
|
||||||
CookieManager.getInstance().setAcceptThirdPartyCookies(binding.webviewConnect, true);
|
CookieManager.getInstance().setAcceptThirdPartyCookies(binding.webviewConnect, true);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -412,6 +412,7 @@ public class Helper {
|
||||||
webView.setBackgroundColor(Color.TRANSPARENT);
|
webView.setBackgroundColor(Color.TRANSPARENT);
|
||||||
webView.getSettings().setAppCacheEnabled(true);
|
webView.getSettings().setAppCacheEnabled(true);
|
||||||
webView.getSettings().setDatabaseEnabled(true);
|
webView.getSettings().setDatabaseEnabled(true);
|
||||||
|
webView.getSettings().setDomStorageEnabled(true);
|
||||||
webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||||
webView.setWebChromeClient(new WebChromeClient() {
|
webView.setWebChromeClient(new WebChromeClient() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue