Rename related streams to related items
This commit is contained in:
parent
aaea661b70
commit
c9766d25ef
46 changed files with 90 additions and 90 deletions
|
|
@ -26,7 +26,7 @@ public class CustomBottomSheetBehavior extends BottomSheetBehavior<FrameLayout>
|
|||
Rect globalRect = new Rect();
|
||||
private boolean skippingInterception = false;
|
||||
private final List<Integer> skipInterceptionOfElements = Arrays.asList(
|
||||
R.id.detail_content_root_layout, R.id.relatedStreamsLayout,
|
||||
R.id.detail_content_root_layout, R.id.relatedItemsLayout,
|
||||
R.id.itemsListPanel, R.id.view_pager, R.id.tab_layout, R.id.bottomControls,
|
||||
R.id.playPauseButton, R.id.playPreviousButton, R.id.playNextButton);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,10 +180,10 @@ public final class PlayerHelper {
|
|||
* if a candidate next video's url already exists in the existing items.
|
||||
* </p>
|
||||
* <p>
|
||||
* The first item in {@link StreamInfo#getRelatedStreams()} is checked first.
|
||||
* The first item in {@link StreamInfo#getRelatedItems()} is checked first.
|
||||
* If it is non-null and is not part of the existing items, it will be used as the next stream.
|
||||
* Otherwise, a random item with non-repeating url will be selected
|
||||
* from the {@link StreamInfo#getRelatedStreams()}.
|
||||
* Otherwise, a random stream with non-repeating url will be selected
|
||||
* from the {@link StreamInfo#getRelatedItems()}. Non-stream items are ignored.
|
||||
* </p>
|
||||
*
|
||||
* @param info currently playing stream
|
||||
|
|
@ -198,7 +198,7 @@ public final class PlayerHelper {
|
|||
urls.add(item.getUrl());
|
||||
}
|
||||
|
||||
final List<InfoItem> relatedItems = info.getRelatedStreams();
|
||||
final List<InfoItem> relatedItems = info.getRelatedItems();
|
||||
if (Utils.isNullOrEmpty(relatedItems)) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue