previous button now loops to the end if at the beginning
This commit is contained in:
		@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user