incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [21/50] [abbrv] android commit: Need to call pluginManager.onDestroy() to clean up plugins.
Date Thu, 07 Jun 2012 20:20:54 GMT
Need to call pluginManager.onDestroy() to clean up plugins.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/c8a521c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/c8a521c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/c8a521c1

Branch: refs/heads/master
Commit: c8a521c1820409a25268a3a36a32daa357e89394
Parents: 5c48ccd
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Wed May 16 23:27:49 2012 -0500
Committer: Bryce Curtis <curtis.bryce@gmail.com>
Committed: Wed May 16 23:27:49 2012 -0500

----------------------------------------------------------------------
 .../cordova/test/CordovaWebViewTestActivity.java   |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/c8a521c1/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
----------------------------------------------------------------------
diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
index 2452377..6c58106 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


Mime
View raw message