1
0
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:
John Zhen Mo
2017-11-04 11:30:01 -07:00
parent b883f313ba
commit 7700cff5e5
6 changed files with 191 additions and 77 deletions

View File

@@ -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);
}