Don't need to fire native ready event during constructor. It gets fired when page has been loaded.

This commit is contained in:
Bryce Curtis 2010-08-24 15:03:38 -05:00
parent 13679fe00d
commit ea8dc73525

View File

@ -134,11 +134,6 @@ public class DroidGap extends Activity {
root.addView(appView);
// Try firing the onNativeReady event in JS. If it fails because the JS is
// not loaded yet then just set a flag so that the onNativeReady can be fired
// from the JS side when the JS gets to that code.
appView.loadUrl("javascript:try{PhoneGap.onNativeReady.fire();}catch(e){_nativeReady = true;}");
setContentView(root);
}