mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
Limited number of songs to shuffle
This commit is contained in:
@@ -152,7 +152,7 @@ public class SongListPageFragment extends Fragment {
|
||||
songListPageViewModel.getSongList(requireActivity()).observe(requireActivity(), songs -> {
|
||||
if (bind != null) {
|
||||
bind.songListShuffleImageView.setOnClickListener(v -> {
|
||||
Collections.shuffle(songs);
|
||||
Collections.shuffle(songs.subList(0, Math.min(25, songs.size())));
|
||||
MediaManager.startQueue(mediaBrowserListenableFuture, requireContext(), songs, 0);
|
||||
activity.setBottomSheetInPeek(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user