mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +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()));
|
||||
if(random) {
|
||||
Collections.shuffle(playlists);
|
||||
listLivePlaylists.setValue(playlists.subList(0, size));
|
||||
listLivePlaylists.setValue(playlists.subList(0, Math.min(playlists.size(), size)));
|
||||
}
|
||||
else {
|
||||
listLivePlaylists.setValue(playlists);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue