You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/01/03 19:30:20 UTC

android commit: Fixed CB-2089 after I tagged for the release. This will have to sit in 2.4.0

Updated Branches:
  refs/heads/master 3caa45d86 -> 72e0b49e0


Fixed CB-2089 after I tagged for the release.  This will have to sit in 2.4.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/72e0b49e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/72e0b49e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/72e0b49e

Branch: refs/heads/master
Commit: 72e0b49e0b6afc0df293ad18947391fde5122e85
Parents: 3caa45d
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Jan 3 10:18:41 2013 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Jan 3 10:18:41 2013 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/InAppBrowser.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/72e0b49e/framework/src/org/apache/cordova/InAppBrowser.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/InAppBrowser.java b/framework/src/org/apache/cordova/InAppBrowser.java
index 2ff1d65..886a95b 100644
--- a/framework/src/org/apache/cordova/InAppBrowser.java
+++ b/framework/src/org/apache/cordova/InAppBrowser.java
@@ -414,6 +414,9 @@ public class InAppBrowser extends CordovaPlugin {
                  */
                 // @TODO: replace with settings.setPluginState(android.webkit.WebSettings.PluginState.ON)
                 settings.setPluginsEnabled(true);
+                settings.setDatabaseEnabled(true);
+                String databasePath = cordova.getActivity().getApplicationContext().getDir("inAppBrowserDB", Context.MODE_PRIVATE).getPath();
+                settings.setDatabasePath(databasePath);
                 settings.setDomStorageEnabled(true);
                 inAppWebView.loadUrl(url);
                 inAppWebView.setId(6);