update to use ordinal instead of enum value

This commit is contained in:
Lorin Beer 2012-06-28 15:29:23 -07:00
parent d9e7984279
commit 3d5e2340ca

2
framework/src/org/apache/cordova/AudioHandler.java Executable file → Normal file
View 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();
}