Commit c926acb3 by andrewlewis Committed by Oliver Woodman

Add missing @Player.State in action schedule

PiperOrigin-RevId: 309735092
parent 96538387
......@@ -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;
}
......
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment