fixed out of bound issue with music list
This commit is contained in:
parent
4473bd6518
commit
9880c0ed7a
@ -126,9 +126,9 @@ public class MusicListController extends Observable implements OnCompletionListe
|
||||
mm.dispose();
|
||||
}
|
||||
if (currentPlaybackID < 0) {
|
||||
currentPlaybackID = musicList.getTotal();
|
||||
currentPlaybackID = musicList.getTotal()-1;
|
||||
}
|
||||
if (currentPlaybackID > musicList.getTotal()) {
|
||||
if (currentPlaybackID >= musicList.getTotal()) {
|
||||
currentPlaybackID = 0;
|
||||
}
|
||||
this.mm = musicList.getMusicInfoFromIndex(currentPlaybackID);
|
||||
|
Loading…
Reference in New Issue
Block a user