mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Fix sublisting index
This commit is contained in:
parent
d3f1ce1fe4
commit
0c30e95c31
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ public class PlaylistRepository {
|
||||||
List<Playlist> playlists = new ArrayList<>(MappingUtil.mapPlaylist(response.body().getPlaylists().getPlaylists()));
|
List<Playlist> playlists = new ArrayList<>(MappingUtil.mapPlaylist(response.body().getPlaylists().getPlaylists()));
|
||||||
if(random) {
|
if(random) {
|
||||||
Collections.shuffle(playlists);
|
Collections.shuffle(playlists);
|
||||||
listLivePlaylists.setValue(playlists.subList(0, size));
|
listLivePlaylists.setValue(playlists.subList(0, Math.min(playlists.size(), size)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
listLivePlaylists.setValue(playlists);
|
listLivePlaylists.setValue(playlists);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue