From c8a521c1820409a25268a3a36a32daa357e89394 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Wed, 16 May 2012 23:27:49 -0500 Subject: [PATCH] Need to call pluginManager.onDestroy() to clean up plugins. --- .../org/apache/cordova/test/CordovaWebViewTestActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java index 24523779..6c581067 100644 --- a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java +++ b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java @@ -26,7 +26,6 @@ import org.apache.cordova.api.IPlugin; import android.app.Activity; import android.content.Intent; import android.os.Bundle; -import android.util.Log; public class CordovaWebViewTestActivity extends Activity implements CordovaInterface { @@ -48,7 +47,9 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter public void onDestroy() { super.onDestroy(); - //phoneGap.onDestroy(); + if (phoneGap.pluginManager != null) { + phoneGap.pluginManager.onDestroy(); + } } @Override