1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Set webview cache mode

This commit is contained in:
M66B 2020-08-06 18:43:02 +02:00
parent a41559bdbe
commit c78a78416b

View file

@ -57,6 +57,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
settings.setAllowFileAccess(false);
settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {