You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/08/22 15:42:02 UTC

[4/4] js commit: [android] Tell the native side when nativeToJsBridgeMode changes.

[android] Tell the native side when nativeToJsBridgeMode changes.


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/93c7c2dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/93c7c2dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/93c7c2dc

Branch: refs/heads/master
Commit: 93c7c2dccf205b9cd99f4f2d5a877390e4d9d0ee
Parents: ec617ee
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Aug 21 11:01:31 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Aug 22 09:40:43 2012 -0400

----------------------------------------------------------------------
 lib/android/exec.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/93c7c2dc/lib/android/exec.js
----------------------------------------------------------------------
diff --git a/lib/android/exec.js b/lib/android/exec.js
index 1bd12e8..4c817f4 100644
--- a/lib/android/exec.js
+++ b/lib/android/exec.js
@@ -126,6 +126,8 @@ androidExec.setNativeToJsBridgeMode = function(mode) {
         callback.stop();
     }
     nativeToJsBridgeMode = mode;
+    // Tell the native side to switch modes.
+    prompt(mode, "gap_bridge_mode:");
     if (mode == 0) {
         polling.start();
     } else if (mode == 1) {