fix:添加队列后再添加播放专辑无新增
This commit is contained in:
parent
0dedeaf301
commit
72c9ce32c0
@ -30,12 +30,16 @@ import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
public class MusicContainer {
|
||||
@ -430,10 +434,10 @@ public class MusicContainer {
|
||||
|
||||
public List<MusicData> getPlayList() {
|
||||
System.out.println("playList.size() = " + playList.size() + " tmpList.size() = " + tmpList.size());
|
||||
if (!tmpList.isEmpty()) {
|
||||
return tmpList;
|
||||
}
|
||||
return playList;
|
||||
List<MusicData> tmp=new ArrayList<>();
|
||||
tmp.addAll(tmpList);
|
||||
tmp.addAll(playList);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user