Remove IntRange from Player.getMediaItemAt

No other index-related methods in Player are annotated, it's considered
obvious that these should be >=0.

PiperOrigin-RevId: 405882756
This commit is contained in:
ibaker 2021-10-27 15:10:30 +01:00 committed by bachinger
parent 09c6ccfb66
commit 3ef7b70c29

View File

@ -2155,7 +2155,7 @@ public interface Player {
int getMediaItemCount(); int getMediaItemCount();
/** Returns the {@link MediaItem} at the given index. */ /** Returns the {@link MediaItem} at the given index. */
MediaItem getMediaItemAt(@IntRange(from = 0) int index); MediaItem getMediaItemAt(int index);
/** /**
* Returns the duration of the current content or ad in milliseconds, or {@link C#TIME_UNSET} if * Returns the duration of the current content or ad in milliseconds, or {@link C#TIME_UNSET} if