Update Lib + Gradle
This commit is contained in:
@@ -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) -> {
|
||||
|
||||
Reference in New Issue
Block a user