mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
CB-2282: Turning on AppCache
This commit is contained in:
parent
13ef58a5bb
commit
892f96e305
@ -270,6 +270,13 @@ public class CordovaWebView extends WebView {
|
|||||||
// Enable built-in geolocation
|
// Enable built-in geolocation
|
||||||
settings.setGeolocationEnabled(true);
|
settings.setGeolocationEnabled(true);
|
||||||
|
|
||||||
|
// Enable AppCache
|
||||||
|
// Fix for CB-2282
|
||||||
|
settings.setAppCacheMaxSize(5 * 1048576);
|
||||||
|
String pathToCache = this.cordova.getActivity().getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath();
|
||||||
|
settings.setAppCachePath(pathToCache);
|
||||||
|
settings.setAppCacheEnabled(true);
|
||||||
|
|
||||||
// Fix for CB-1405
|
// Fix for CB-1405
|
||||||
// Google issue 4641
|
// Google issue 4641
|
||||||
this.updateUserAgentString();
|
this.updateUserAgentString();
|
||||||
|
Loading…
Reference in New Issue
Block a user