mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
update to use ordinal instead of enum value
This commit is contained in:
parent
d9e7984279
commit
3d5e2340ca
2
framework/src/org/apache/cordova/AudioHandler.java
Executable file → Normal file
2
framework/src/org/apache/cordova/AudioHandler.java
Executable file → Normal file
@ -155,7 +155,7 @@ public class AudioHandler extends Plugin {
|
||||
|
||||
// Get all audio players and pause them
|
||||
for (AudioPlayer audio : this.players.values()) {
|
||||
if (audio.getState() == AudioPlayer.MEDIA_RUNNING) {
|
||||
if (audio.getState() == AudioPlayer.STATE.MEDIA_RUNNING.ordinal()) {
|
||||
this.pausedForPhone.add(audio);
|
||||
audio.pausePlaying();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user