Update Lib + Gradle

This commit is contained in:
2023-01-31 14:20:49 +01:00
parent 3e6ae820c5
commit 42e72c15f1
2 changed files with 11 additions and 12 deletions

View File

@@ -184,19 +184,18 @@ public class MainActivity extends AppCompatActivity {
web.getSettings().setAllowFileAccess(true);
web.getSettings().setAllowFileAccessFromFileURLs(true);
web.getSettings().setAllowUniversalAccessFromFileURLs(true);
web.getSettings().setAppCacheEnabled(true);
web.getSettings().setDatabaseEnabled(true);
web.getSettings().setDomStorageEnabled(true);
web.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
web.getSettings().setAppCachePath(web.getContext().getCacheDir().getAbsolutePath());
// web.getSettings().setAppCachePath(web.getContext().getCacheDir().getAbsolutePath());
web.getSettings().setUseWideViewPort(true);
web.getSettings().setLoadWithOverviewMode(true);
web.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
web.getSettings().setAllowFileAccessFromFileURLs(true);
//Log.w("AGENT", web.getSettings().getUserAgentString());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
web.getSettings().setAllowFileAccessFromFileURLs(true);
}
//if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
// web.getSettings().setAllowFileAccessFromFileURLs(true);
//}
web.loadUrl(URL_PLATEFORM);
web.setDownloadListener((url, userAgent, contentDisposition, mimeType, contentLength) -> {