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
c926acb3
authored
May 04, 2020
by
andrewlewis
Committed by
Oliver Woodman
May 05, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add missing @Player.State in action schedule
PiperOrigin-RevId: 309735092
parent
96538387
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
testutils/src/main/java/com/google/android/exoplayer2/testutil/Action.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/ActionSchedule.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/Action.java
View file @
c926acb3
...
@@ -890,13 +890,13 @@ public abstract class Action {
...
@@ -890,13 +890,13 @@ public abstract class Action {
*/
*/
public
static
final
class
WaitForPlaybackState
extends
Action
{
public
static
final
class
WaitForPlaybackState
extends
Action
{
private
final
int
targetPlaybackState
;
@Player
.
State
private
final
int
targetPlaybackState
;
/**
/**
* @param tag A tag to use for logging.
* @param tag A tag to use for logging.
* @param targetPlaybackState The playback state to wait for.
* @param targetPlaybackState The playback state to wait for.
*/
*/
public
WaitForPlaybackState
(
String
tag
,
int
targetPlaybackState
)
{
public
WaitForPlaybackState
(
String
tag
,
@Player
.
State
int
targetPlaybackState
)
{
super
(
tag
,
"WaitForPlaybackState"
);
super
(
tag
,
"WaitForPlaybackState"
);
this
.
targetPlaybackState
=
targetPlaybackState
;
this
.
targetPlaybackState
=
targetPlaybackState
;
}
}
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/ActionSchedule.java
View file @
c926acb3
...
@@ -537,7 +537,7 @@ public final class ActionSchedule {
...
@@ -537,7 +537,7 @@ public final class ActionSchedule {
* @param targetPlaybackState The target playback state.
* @param targetPlaybackState The target playback state.
* @return The builder, for convenience.
* @return The builder, for convenience.
*/
*/
public
Builder
waitForPlaybackState
(
int
targetPlaybackState
)
{
public
Builder
waitForPlaybackState
(
@Player
.
State
int
targetPlaybackState
)
{
return
apply
(
new
WaitForPlaybackState
(
tag
,
targetPlaybackState
));
return
apply
(
new
WaitForPlaybackState
(
tag
,
targetPlaybackState
));
}
}
...
...
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