This commit is contained in:
macdonst 2012-02-24 17:51:20 -05:00
commit 3ed41597d2

View File

@ -908,8 +908,10 @@ public class DroidGap extends Activity implements CordovaInterface {
this.appView.loadUrl("about:blank"); this.appView.loadUrl("about:blank");
// Forward to plugins // Forward to plugins
if (this.pluginManager != null) {
this.pluginManager.onDestroy(); this.pluginManager.onDestroy();
} }
}
else { else {
this.endActivity(); this.endActivity();
} }
@ -924,8 +926,10 @@ public class DroidGap extends Activity implements CordovaInterface {
public void postMessage(String id, Object data) { public void postMessage(String id, Object data) {
// Forward to plugins // Forward to plugins
if (this.pluginManager != null) {
this.pluginManager.postMessage(id, data); this.pluginManager.postMessage(id, data);
} }
}
/** /**
* @deprecated * @deprecated