Fix permitted parameter range for handleReplaceMediaItems in javadoc

This commit is contained in:
Uli Bubenheimer 2025-02-12 11:34:10 -05:00 committed by tonihei
parent 72c85aa483
commit 26cf8e1e94

View File

@ -3475,9 +3475,9 @@ public abstract class SimpleBasePlayer extends BasePlayer {
* <p>Will only be called if {@link Player#COMMAND_CHANGE_MEDIA_ITEMS} is available. * <p>Will only be called if {@link Player#COMMAND_CHANGE_MEDIA_ITEMS} is available.
* *
* @param fromIndex The start index of the items to replace. The index is in the range 0 &lt;= * @param fromIndex The start index of the items to replace. The index is in the range 0 &lt;=
* {@code fromIndex} &lt; {@link #getMediaItemCount()}. * {@code fromIndex} &lt;= {@link #getMediaItemCount()}.
* @param toIndex The index of the first item not to be replaced (exclusive). The index is in the * @param toIndex The index of the first item not to be replaced (exclusive). The index is in the
* range {@code fromIndex} &lt; {@code toIndex} &lt;= {@link #getMediaItemCount()}. * range {@code fromIndex} &lt;= {@code toIndex} &lt;= {@link #getMediaItemCount()}.
* @param mediaItems The media items to replace the specified range with. * @param mediaItems The media items to replace the specified range with.
* @return A {@link ListenableFuture} indicating the completion of all immediate {@link State} * @return A {@link ListenableFuture} indicating the completion of all immediate {@link State}
* changes caused by this call. * changes caused by this call.