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 Oliver Woodman
parent 965383879e
commit c926acb36d
2 changed files with 3 additions and 3 deletions

View file

@ -890,13 +890,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

@ -537,7 +537,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));
}