mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
enable caching
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
ddffaf7b49
commit
f2627a29a8
2 changed files with 7 additions and 1 deletions
|
@ -1 +1 @@
|
|||
409
|
||||
412
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue