Issue 107: always send resume event to JS.

This commit is contained in:
Fil Maj
2011-03-07 16:50:10 -08:00
parent fb2c25c6c6
commit 8d73b364f2
+3 -3
View File
@@ -621,6 +621,9 @@ public class DroidGap extends PhonegapActivity {
protected void onResume() {
super.onResume();
// Send resume event to JavaScript
this.appView.loadUrl("javascript:try{PhoneGap.onResume.fire();}catch(e){};");
// If app doesn't want to run in background
if (!this.keepRunning || this.activityResultKeepRunning) {
@@ -633,9 +636,6 @@ public class DroidGap extends PhonegapActivity {
// Forward to plugins
this.pluginManager.onResume();
// Send resume event to JavaScript
this.appView.loadUrl("javascript:try{PhoneGap.onResume.fire();}catch(e){};");
// Resume JavaScript timers (including setInterval)
this.appView.resumeTimers();
}