incubator-callback-commits mailing list archives

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


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

Branch: refs/heads/master
Commit: 9318ee30bd3dc79e4a77451f2f7a8e3099ec8da7
Parents: 8b6c957
Author: Braden Shepherdson <braden@chromium.org>
Authored: Mon Sep 24 11:35:35 2012 -0400
Committer: Braden Shepherdson <braden@chromium.org>
Committed: Mon Sep 24 11:35:35 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9318ee30/framework/src/org/apache/cordova/BatteryListener.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/BatteryListener.java b/framework/src/org/apache/cordova/BatteryListener.java
index eb0ea98..4476cc3 100755
--- a/framework/src/org/apache/cordova/BatteryListener.java
+++ b/framework/src/org/apache/cordova/BatteryListener.java
@@ -100,6 +100,13 @@ public class BatteryListener extends Plugin {
     }
 
     /**
+     * Stop battery receiver.
+     */
+    public void onReset() {
+        removeBatteryListener();
+    }
+
+    /**
      * Stop the battery receiver and set it to null.
      */
     private void removeBatteryListener() {


Mime
View raw message