incubator-callback-commits mailing list archives

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


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

Branch: refs/heads/master
Commit: 7e3af6c2351d0b17d5ff4f2aa3c8b190a22f8ae0
Parents: dd4de16
Author: Braden Shepherdson <braden@chromium.org>
Authored: Mon Sep 24 14:21:18 2012 -0400
Committer: Braden Shepherdson <braden@chromium.org>
Committed: Mon Sep 24 14:21:18 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/7e3af6c2/framework/src/org/apache/cordova/TempListener.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/TempListener.java b/framework/src/org/apache/cordova/TempListener.java
index c65bc87..5b59404 100755
--- a/framework/src/org/apache/cordova/TempListener.java
+++ b/framework/src/org/apache/cordova/TempListener.java
@@ -82,6 +82,13 @@ public class TempListener extends Plugin implements SensorEventListener
{
         this.stop();
     }
 
+    /**
+     * Called on navigation.
+     */
+    public void onReset() {
+        this.stop();
+    }
+
     //--------------------------------------------------------------------------
     // LOCAL METHODS
     //--------------------------------------------------------------------------


Mime
View raw message