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

This commit is contained in:
Joe Bowser 2012-11-19 10:35:47 -08:00
parent 6c19a440f5
commit c416c77d7a

View File

@ -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");
}