plays music when music is selected whether originally paused or not
This commit is contained in:
parent
8cebf891a0
commit
ee08e149c6
@ -282,11 +282,8 @@ public class MusicSelectionPage extends Page implements Observer {
|
|||||||
public void playCurrentMusic() {
|
public void playCurrentMusic() {
|
||||||
if (currentlySelected.getMusicFile() != mc.getCurrentMusicManager().getMusicFile()) {
|
if (currentlySelected.getMusicFile() != mc.getCurrentMusicManager().getMusicFile()) {
|
||||||
int index = mc.getMusicList().getSongList().indexOf(currentlySelected.getMusicFile(), true);
|
int index = mc.getMusicList().getSongList().indexOf(currentlySelected.getMusicFile(), true);
|
||||||
boolean playing = mc.getCurrentMusicManager().isPlaying();
|
|
||||||
mc.setMusicByIndex(index);
|
mc.setMusicByIndex(index);
|
||||||
if (playing) {
|
mc.play();
|
||||||
mc.play();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user