cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [08/32] git commit: CB-5504: Adding onDestroy to app plugin to deregister telephonyReceiver
Date Mon, 03 Feb 2014 20:26:09 GMT
CB-5504: Adding onDestroy to app plugin to deregister telephonyReceiver


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/8712bc90
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/8712bc90
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/8712bc90

Branch: refs/heads/3.4.x
Commit: 8712bc909a8fcbe7ea4a0e7ff235796fa343c8ca
Parents: b5b89dc
Author: Joe Bowser <bowserj@apache.org>
Authored: Wed Jan 8 13:12:00 2014 -0800
Committer: Archana Naik <naika@lab126.com>
Committed: Mon Feb 3 11:09:46 2014 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/App.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/8712bc90/framework/src/org/apache/cordova/App.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/App.java b/framework/src/org/apache/cordova/App.java
index 965748d..ead99bc 100755
--- a/framework/src/org/apache/cordova/App.java
+++ b/framework/src/org/apache/cordova/App.java
@@ -284,4 +284,12 @@ public class App extends CordovaPlugin {
         this.cordova.getActivity().registerReceiver(this.telephonyReceiver, intentFilter);
     }
 
+    /*
+     * Unregister the receiver
+     *
+     */
+    public void onDestroy()
+    {
+        this.cordova.getActivity().unregisterReceiver(this.telephonyReceiver);
+    }
 }


Mime
View raw message