incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [10/11] android commit: Make AudioHandler stop and clean up on onReset()
Date Mon, 24 Sep 2012 18:38:34 GMT
Make AudioHandler stop and clean up on onReset()


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

Branch: refs/heads/master
Commit: 8b6c9574df051ab5000cd8e8591cce57b6d4e3d0
Parents: 3131481
Author: Braden Shepherdson <braden@chromium.org>
Authored: Fri Sep 21 15:33:56 2012 -0400
Committer: Braden Shepherdson <braden@chromium.org>
Committed: Fri Sep 21 15:33:56 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/8b6c9574/framework/src/org/apache/cordova/AudioHandler.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AudioHandler.java b/framework/src/org/apache/cordova/AudioHandler.java
index ccf9f6c..9ee226a 100644
--- a/framework/src/org/apache/cordova/AudioHandler.java
+++ b/framework/src/org/apache/cordova/AudioHandler.java
@@ -140,6 +140,14 @@ public class AudioHandler extends Plugin {
     }
 
     /**
+     * Stop all audio players and recorders on navigate.
+     */
+    @Override
+    public void onReset() {
+        onDestroy();
+    }
+
+    /**
      * Called when a message is sent to plugin.
      *
      * @param id            The message id


Mime
View raw message