Fix TrackSelectionOverrides javadoc

#minor-release

PiperOrigin-RevId: 408825328
This commit is contained in:
ibaker 2021-11-10 10:35:45 +00:00 committed by Ian Baker
parent aa0b0bfcbc
commit ad305b44a0

View File

@ -113,14 +113,14 @@ public final class TrackSelectionOverrides implements Bundleable {
/** /**
* Forces the selection of {@link #trackIndices} for a {@link TrackGroup}. * Forces the selection of {@link #trackIndices} for a {@link TrackGroup}.
* *
* <p>If multiple {link #tracks} are overridden, as many as possible will be selected depending on * <p>If multiple tracks in {@link #trackGroup} are overridden, as many as possible will be
* the player capabilities. * selected depending on the player capabilities.
* *
* <p>If a {@link TrackSelectionOverride} has no tracks ({@code tracks.isEmpty()}), no tracks will * <p>If {@link #trackIndices} is empty, no tracks from {@link #trackGroup} will be played. This
* be played. This is similar to {@link TrackSelectionParameters#disabledTrackTypes}, except it * is similar to {@link TrackSelectionParameters#disabledTrackTypes}, except it will only affect
* will only affect the playback of the associated {@link TrackGroup}. For example, if the only * the playback of the associated {@link TrackGroup}. For example, if the only {@link
* {@link C#TRACK_TYPE_VIDEO} {@link TrackGroup} is associated with no tracks, no video will play * C#TRACK_TYPE_VIDEO} {@link TrackGroup} is associated with no tracks, no video will play until
* until the next video starts. * the next video starts.
*/ */
public static final class TrackSelectionOverride implements Bundleable { public static final class TrackSelectionOverride implements Bundleable {
@ -232,7 +232,7 @@ public final class TrackSelectionOverrides implements Bundleable {
return new Builder(overrides); return new Builder(overrides);
} }
/** Returns all {@link TrackSelectionOverride} contained. */ /** Returns a list of the {@link TrackSelectionOverride overrides}. */
@UnstableApi @UnstableApi
public ImmutableList<TrackSelectionOverride> asList() { public ImmutableList<TrackSelectionOverride> asList() {
return ImmutableList.copyOf(overrides.values()); return ImmutableList.copyOf(overrides.values());