plays music when music is selected whether originally paused or not

This commit is contained in:
Harrison Deng 2017-11-23 21:17:09 -06:00
parent 8cebf891a0
commit ee08e149c6

View File

@ -282,11 +282,8 @@ public class MusicSelectionPage extends Page implements Observer {
public void playCurrentMusic() {
if (currentlySelected.getMusicFile() != mc.getCurrentMusicManager().getMusicFile()) {
int index = mc.getMusicList().getSongList().indexOf(currentlySelected.getMusicFile(), true);
boolean playing = mc.getCurrentMusicManager().isPlaying();
mc.setMusicByIndex(index);
if (playing) {
mc.play();
}
mc.play();
}
}
}