mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-04-26 00:31:22 +00:00
-Added play buttons to channel fragment similar to playlist fragment.
-Fixed abstract info play queue reloading the same initial page. -Fixed OOB on get item for abstract play queue.
This commit is contained in:
@@ -123,7 +123,7 @@ public abstract class PlayQueue implements Serializable {
|
||||
* May throw {@link IndexOutOfBoundsException}.
|
||||
* */
|
||||
public PlayQueueItem getItem(int index) {
|
||||
if (index >= streams.size() || streams.get(index) == null) return null;
|
||||
if (index < 0 || index >= streams.size() || streams.get(index) == null) return null;
|
||||
return streams.get(index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user