mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 16:23:08 +00:00
Fix sublisting index
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user