Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7d524d6d
authored
Sep 20, 2021
by
andrewlewis
Committed by
Christos Tsilopoulos
Sep 20, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix incorrect @IntRange
PiperOrigin-RevId: 397753634
parent
9666fbdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
library/common/src/main/java/com/google/android/exoplayer2/source/ads/AdPlaybackState.java
library/common/src/main/java/com/google/android/exoplayer2/source/ads/AdPlaybackState.java
View file @
7d524d6d
...
@@ -118,9 +118,10 @@ public final class AdPlaybackState implements Bundleable {
...
@@ -118,9 +118,10 @@ public final class AdPlaybackState implements Bundleable {
/**
/**
* Returns the index of the next ad in the ad group that should be played after playing {@code
* Returns the index of the next ad in the ad group that should be played after playing {@code
* lastPlayedAdIndex}, or {@link #count} if no later ads should be played.
* lastPlayedAdIndex}, or {@link #count} if no later ads should be played. If no ads have been
* played, pass -1 to get the index of the first ad to play.
*/
*/
public
int
getNextAdIndexToPlay
(
@IntRange
(
from
=
0
)
int
lastPlayedAdIndex
)
{
public
int
getNextAdIndexToPlay
(
@IntRange
(
from
=
-
1
)
int
lastPlayedAdIndex
)
{
int
nextAdIndexToPlay
=
lastPlayedAdIndex
+
1
;
int
nextAdIndexToPlay
=
lastPlayedAdIndex
+
1
;
while
(
nextAdIndexToPlay
<
states
.
length
)
{
while
(
nextAdIndexToPlay
<
states
.
length
)
{
if
(
isServerSideInserted
if
(
isServerSideInserted
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment