mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
update to use ordinal instead of enum value
This commit is contained in:
Executable → Regular
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user