mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Make AudioHandler stop and clean up on onReset()
This commit is contained in:
parent
313148136a
commit
8b6c9574df
@ -139,6 +139,14 @@ public class AudioHandler extends Plugin {
|
||||
this.players.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop all audio players and recorders on navigate.
|
||||
*/
|
||||
@Override
|
||||
public void onReset() {
|
||||
onDestroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a message is sent to plugin.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user