Add missing @Player.State in action schedule

PiperOrigin-RevId: 309735092
This commit is contained in:
andrewlewis 2020-05-04 14:54:54 +01:00 committed by Andrew Lewis
parent d159f622c2
commit 2112b722b5
2 changed files with 3 additions and 3 deletions

View file

@ -685,13 +685,13 @@ public abstract class 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 targetPlaybackState The playback state to wait for.
*/
public WaitForPlaybackState(String tag, int targetPlaybackState) {
public WaitForPlaybackState(String tag, @Player.State int targetPlaybackState) {
super(tag, "WaitForPlaybackState");
this.targetPlaybackState = targetPlaybackState;
}

View file

@ -433,7 +433,7 @@ public final class ActionSchedule {
* @param targetPlaybackState The target playback state.
* @return The builder, for convenience.
*/
public Builder waitForPlaybackState(int targetPlaybackState) {
public Builder waitForPlaybackState(@Player.State int targetPlaybackState) {
return apply(new WaitForPlaybackState(tag, targetPlaybackState));
}