mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Add missing @Player.State in action schedule
PiperOrigin-RevId: 309735092
This commit is contained in:
parent
d159f622c2
commit
2112b722b5
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue