[android] Fix NativeToJsBridgeMode enum not matching up with native This was broken when HANGING_GET mode was removed.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/c51b7f8b Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/c51b7f8b Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/c51b7f8b Branch: refs/heads/master Commit: c51b7f8b55fcab2cb1be50efacc698f483bfece3 Parents: e799aef Author: Andrew Grieve <agri...@chromium.org> Authored: Tue Oct 2 09:38:38 2012 -0400 Committer: Andrew Grieve <agri...@chromium.org> Committed: Tue Oct 2 09:38:38 2012 -0400 ---------------------------------------------------------------------- lib/android/exec.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/c51b7f8b/lib/android/exec.js ---------------------------------------------------------------------- diff --git a/lib/android/exec.js b/lib/android/exec.js index 90e5ea2..dcc1617 100644 --- a/lib/android/exec.js +++ b/lib/android/exec.js @@ -48,15 +48,15 @@ var cordova = require('cordova'), POLLING: 0, // For LOAD_URL to be viable, it would need to have a work-around for // the bug where the soft-keyboard gets dismissed when a message is sent. - LOAD_URL: 2, + LOAD_URL: 1, // For the ONLINE_EVENT to be viable, it would need to intercept all event // listeners (both through addEventListener and window.ononline) as well // as set the navigator property itself. - ONLINE_EVENT: 3, + ONLINE_EVENT: 2, // Uses reflection to access private APIs of the WebView that can send JS // to be executed. // Requires Android 3.2.4 or above. - PRIVATE_API: 4 + PRIVATE_API: 3 }, jsToNativeBridgeMode, // Set lazily. nativeToJsBridgeMode = nativeToJsModes.ONLINE_EVENT,