Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shuffle all option in home menu - closes #313 #314

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

lucaxvi
Copy link
Contributor

@lucaxvi lucaxvi commented Oct 31, 2024

  • Adds a "shuffle all" option to the three dot menu.
  • Fixes a bug with the shuffle all button in the songs fragment skipping some songs.

@nift4
Copy link
Collaborator

nift4 commented Oct 31, 2024

Won't shuffle all now always start at the same song?

@lucaxvi
Copy link
Contributor Author

lucaxvi commented Oct 31, 2024

It looks like exoplayer is smart enough to start the playlist with a random song when shuffle mode is enabled and you call setMediaItems without passing a start index. I just tested it and it works as intended.

@nift4
Copy link
Collaborator

nift4 commented Oct 31, 2024

That code does predate the introduction of CircularShuffleOrder by a few months so I guess that makes sense. Give me some time in general to get back to Gramophone and I'll probably merge this

@nift4 nift4 merged commit 8d1a527 into AkaneTan:beta Nov 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants