incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [6/11] android commit: Add onReset() to NetworkManager.
Date Mon, 24 Sep 2012 18:38:34 GMT
Add onReset() to NetworkManager.


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/ba8577fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/ba8577fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/ba8577fa

Branch: refs/heads/master
Commit: ba8577fa5f178474739f84d6e0b1df710453a4f0
Parents: 6192319
Author: Braden Shepherdson <braden@chromium.org>
Authored: Mon Sep 24 14:20:52 2012 -0400
Committer: Braden Shepherdson <braden@chromium.org>
Committed: Mon Sep 24 14:20:52 2012 -0400

----------------------------------------------------------------------
 .../src/org/apache/cordova/NetworkManager.java     |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ba8577fa/framework/src/org/apache/cordova/NetworkManager.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/NetworkManager.java b/framework/src/org/apache/cordova/NetworkManager.java
index 37f0933..e3ec9a9 100755
--- a/framework/src/org/apache/cordova/NetworkManager.java
+++ b/framework/src/org/apache/cordova/NetworkManager.java
@@ -153,6 +153,13 @@ public class NetworkManager extends Plugin {
         }
     }
 
+    /**
+     * Stop the network receiver on navigation.
+     */
+    public void onReset() {
+        this.onDestroy();
+    }
+
     //--------------------------------------------------------------------------
     // LOCAL METHODS
     //--------------------------------------------------------------------------


Mime
View raw message