enable caching

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-12-18 09:51:58 +01:00
parent ddffaf7b49
commit f2627a29a8
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 7 additions and 1 deletions

View file

@ -1 +1 @@
409
412

View file

@ -163,6 +163,12 @@ public class ExternalSiteWebView extends FileActivity {
// enable javascript
webSettings.setJavaScriptEnabled(true);
webSettings.setDomStorageEnabled(true);
// caching disabled in debug mode
if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0) {
webSettings.setAppCacheEnabled(true);
webSettings.setAppCachePath(getCacheDir().getPath());
}
}
private void setupActionBar(String title) {