cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Fixed CB-2089 after I tagged for the release. This will have to sit in 2.4.0
Date Thu, 03 Jan 2013 18:30:20 GMT
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 <bowserj@apache.org>
Authored: Thu Jan 3 10:18:41 2013 -0800
Committer: Joe Bowser <bowserj@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);


Mime
View raw message