callback/callback-android — comment on commit 0bbcf5cfd2349801d00e067424a66fa1086103ea
File: framework/src/com/phonegap/AudioHandler.java line 167
By plowman:

Instead of this while loop, you should try doing something like this:

```java
for (AudioPlayer audio : players.values()) {
if (audio.getState() == AudioPlayer.MEDIA_RUNNING) {
pausedForPhone.add(audio);
audio.pausePlaying();
}
}
```

This has the advantage of being slightly faster, but equally important, it is much cleaner.