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/03/20 23:22:14 UTC

android commit: First stab at CB-21, I really need more info before I can close this

Updated Branches:
  refs/heads/master bbf10e3ba -> a688319ea


First stab at CB-21, I really need more info before I can close this


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

Branch: refs/heads/master
Commit: a688319ea7144bfe1bdec39f600fbed5e7e70b6a
Parents: bbf10e3
Author: Joe Bowser <bo...@apache.org>
Authored: Tue Mar 20 15:22:00 2012 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Tue Mar 20 15:22:00 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/a688319e/framework/src/org/apache/cordova/CordovaWebViewClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java
index 03ed2c1..5eb2406 100755
--- a/framework/src/org/apache/cordova/CordovaWebViewClient.java
+++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java
@@ -218,6 +218,7 @@ public class CordovaWebViewClient extends WebViewClient {
         // from the JS side when the JS gets to that code.
         if (!url.equals("about:blank")) {
             ctx.appView.loadUrl("javascript:try{ cordova.require('cordova/channel').onNativeReady.fire();}catch(e){_nativeReady = true;}");
+            this.ctx.postMessage("onNativeReady", null);
         }
 
         // Make app visible after 2 sec in case there was a JS error and Cordova JS never initialized correctly