mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 23:13:36 +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()));
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user