mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
can now go to last using previous and being at the first song
This commit is contained in:
@@ -175,7 +175,9 @@ public class MusicManager<T extends AudioResource> implements org.toop.framework
|
|||||||
|
|
||||||
public void previous() {
|
public void previous() {
|
||||||
if (backgroundMusic.isEmpty()) return;
|
if (backgroundMusic.isEmpty()) return;
|
||||||
if (playingIndex == 0) return;
|
if (playingIndex == 0) {
|
||||||
|
playingIndex = backgroundMusic.size();
|
||||||
|
}
|
||||||
stop();
|
stop();
|
||||||
scheduler.shutdownNow();
|
scheduler.shutdownNow();
|
||||||
playingIndex = playingIndex - 1;
|
playingIndex = playingIndex - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user