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