mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Merge pull request #241 from Noahsark/master
Clean my code and fix a bug of MusicPlayer
This commit is contained in:
commit
fa5ddb23a2
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ public class MusicPlayer {
|
||||||
filelist.removeAll();
|
filelist.removeAll();
|
||||||
File filedir = new File(filepath);
|
File filedir = new File(filepath);
|
||||||
File[] fileread = filedir.listFiles();
|
File[] fileread = filedir.listFiles();
|
||||||
|
if(fileread == null) return false;
|
||||||
if(fileread.length == 0)return false;
|
if(fileread.length == 0)return false;
|
||||||
String filename;
|
String filename;
|
||||||
for(File f:fileread){
|
for(File f:fileread){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue