mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Don't need to fire native ready event during constructor. It gets fired when page has been loaded.
This commit is contained in:
parent
13679fe00d
commit
ea8dc73525
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user