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 2012/11/19 19:37:01 UTC

[3/3] android commit: Fix for CB-1879 by Tom Clarkson. Hacked in due to lack of pull request

Fix for CB-1879 by Tom Clarkson.  Hacked in due to lack of pull request


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

Branch: refs/heads/master
Commit: c416c77d7a53c8efb2275e147c4f91caac71a334
Parents: 6c19a44
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Nov 19 10:35:47 2012 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Mon Nov 19 10:35:47 2012 -0800

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/c416c77d/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 4777f25..efd3cf8 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -302,6 +302,10 @@ public class CordovaWebView extends WebView {
             Log.i(TAG, "Disabled addJavascriptInterface() bridge callback due to a bug on the 2.3 emulator");
             return;
         }
+        else if (SDK_INT == Build.VERSION_CODES.JELLY_BEAN_MR1) {            
+            Log.i(TAG, "Disabled addJavascriptInterface() bridge callback for 4.2.  Symbols are broken, and we can't compile the annotation needed to expose the exec.");
+            return;
+        }
         this.addJavascriptInterface(exposedJsApi, "_cordovaNative");
     }