add UI to adjust BGM path

This commit is contained in:
Li REN 2013-06-30 15:05:30 -04:00
parent 407cbc0054
commit 70ebb6bfbc
4 changed files with 120 additions and 10 deletions

View file

@ -21,7 +21,9 @@ public class MusicPlayer {
//open file and add list
private boolean open(){
filepath = Constants.BASE_MUSICS_PATH;
String path = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_MUSICS_PATH, "true");
filepath = path + File.separator;
if(path == null) filepath = Constants.BASE_MUSICS_PATH;
filelist.removeAll();
File filedir = new File(filepath);
File[] fileread = filedir.listFiles();