Fixing CB-2955, breaking CB-2085, use localStorage, NOT WebSQL

This commit is contained in:
Joe Bowser 2013-04-08 15:53:14 -07:00
parent bb9615eed0
commit e7e2730929

View File

@ -267,11 +267,8 @@ public class CordovaWebView extends WebView {
// Enable database
// 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();
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)
{
settings.setDatabaseEnabled(true);
settings.setDatabasePath(databasePath);
}
settings.setGeolocationDatabasePath(databasePath);