previous button now loops to the end if at the beginning

This commit is contained in:
Harrison Deng 2017-10-30 12:43:19 -05:00
parent 29e0dfbcc8
commit 49f454a21f
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,8 @@
package zero1hd.rhythmbullet;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
@ -55,7 +58,9 @@ public class RhythmBullet extends Game {
@Override
public void create() {
Logger.getLogger("org.jaudiotagger").setLevel(Level.OFF);
Gdx.app.setLogLevel(Application.LOG_DEBUG);
prefs = Gdx.app.getPreferences("PolyJet_Preferences");
if (getPrefs().getBoolean("fullscreen", true)) {

View File

@ -111,7 +111,7 @@ public class SongListController extends Observable implements OnCompletionListen
}
}
if (currentPlaybackID < 0) {
currentPlaybackID = 0;
currentPlaybackID = songList.getAmountOfSongs();
}
this.mdp = songList.getMusicInfoFromIndex(currentPlaybackID);
if (mdp == null) {

View File

@ -2,8 +2,6 @@ package zero1hd.rhythmbullet.graphics.ui.pages;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Preferences;
@ -106,7 +104,6 @@ public class MusicSelectionPage extends Page {
}
public void refresh() {
Logger.getLogger("org.jaudiotagger").setLevel(Level.OFF);
songTable.clear();
selectables.clear();
for (int i = 0; i < selectables.size; i++) {