File tree 1 file changed +2
-2
lines changed
ESDSoundboardApp/src/main/java/vv3ird/ESDSoundboardApp/ngui/pages
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ public JSpotifySoundPage() {
70
70
71
71
private void updateList () {
72
72
pnContent .removeAll ();
73
- List <Sound > sbs = AudioApp .getSpotifyPlaylistSounds (Type .AMBIENCE ).stream ()
74
- .filter (s -> filter .length () == 0 || s .getName ().toLowerCase ().contains (filter .toLowerCase ())).collect (Collectors .toList ());
73
+ List <Sound > sbs = AudioApp .getSpotifyPlaylistSounds (Type .AMBIENCE );
75
74
if (sbs == null )
76
75
sbs = new LinkedList <>();
76
+ sbs .stream ().filter (s -> filter .length () == 0 || s .getName ().toLowerCase ().contains (filter .toLowerCase ())).collect (Collectors .toList ());
77
77
List <JPanel > toAdd = new ArrayList <>(sbs .size ());
78
78
for (Sound sound : sbs ) {
79
79
JSoundPanel jsbp = new JSoundPanel (sound , ColorScheme .MAIN_BACKGROUND_COLOR );
You can’t perform that action at this time.
0 commit comments