|
|
@ -118,7 +118,12 @@ public class UsbPlayer implements Device { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void prev() { |
|
|
|
|
|
|
|
int currentIdex = Playlist.indexOf(playTrack); |
|
|
|
int nextIndex = Playlist.size() - 1; |
|
|
|
if (currentIdex != 0) { |
|
|
|
nextIndex = (currentIdex - 1); |
|
|
|
} |
|
|
|
playTrack = Playlist.get(nextIndex); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|