mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fixing CB-2955, breaking CB-2085, use localStorage, NOT WebSQL
This commit is contained in:
parent
bb9615eed0
commit
e7e2730929
@ -267,11 +267,8 @@ public class CordovaWebView extends WebView {
|
|||||||
// Enable database
|
// Enable database
|
||||||
// We keep this disabled because we use or shim to get around DOM_EXCEPTION_ERROR_16
|
// We keep this disabled because we use or shim to get around DOM_EXCEPTION_ERROR_16
|
||||||
String databasePath = this.cordova.getActivity().getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath();
|
String databasePath = this.cordova.getActivity().getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath();
|
||||||
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)
|
settings.setDatabaseEnabled(true);
|
||||||
{
|
settings.setDatabasePath(databasePath);
|
||||||
settings.setDatabaseEnabled(true);
|
|
||||||
settings.setDatabasePath(databasePath);
|
|
||||||
}
|
|
||||||
|
|
||||||
settings.setGeolocationDatabasePath(databasePath);
|
settings.setGeolocationDatabasePath(databasePath);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user