We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab6e84 commit 2e161a1Copy full SHA for 2e161a1
1 file changed
app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
@@ -432,11 +432,12 @@ public synchronized void unsetRecovery(final int index) {
432
* Will emit a {@link ReorderEvent} if shuffled.
433
* </p>
434
*
435
- * @implNote Does nothing if the queue is empty or has a size of 1
+ * @implNote Does nothing if the queue has a size <= 2 (the currently playing video must stay on
436
+ * top, so shuffling a size-2 list does nothing)
437
*/
438
public synchronized void shuffle() {
439
// Can't shuffle an list that's empty or only has one element
- if (size() <= 1) {
440
+ if (size() <= 2) {
441
return;
442
}
443
// Create a backup if it doesn't already exist
0 commit comments