add back webviews cache...needed for map tiles loaded by external plugins
This commit is contained in:
parent
e4ba8ef73f
commit
9a842496da
@ -57,6 +57,9 @@ public class IITC_WebView extends WebView {
|
|||||||
mSettings.setDomStorageEnabled(true);
|
mSettings.setDomStorageEnabled(true);
|
||||||
mSettings.setAllowFileAccess(true);
|
mSettings.setAllowFileAccess(true);
|
||||||
mSettings.setGeolocationEnabled(true);
|
mSettings.setGeolocationEnabled(true);
|
||||||
|
mSettings.setAppCacheEnabled(true);
|
||||||
|
mSettings.setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||||
|
mSettings.setAppCachePath(getContext().getCacheDir().getAbsolutePath());
|
||||||
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/");
|
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/");
|
||||||
mJsInterface = new IITC_JSInterface(mIitc);
|
mJsInterface = new IITC_JSInterface(mIitc);
|
||||||
addJavascriptInterface(mJsInterface, "android");
|
addJavascriptInterface(mJsInterface, "android");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user