Commit 62eb5453 by kimvde Committed by Oliver Woodman

Add missing checks to ExoPlayer Builders

PiperOrigin-RevId: 368851903
parent 19c267b1
...@@ -436,6 +436,7 @@ public interface ExoPlayer extends Player { ...@@ -436,6 +436,7 @@ public interface ExoPlayer extends Player {
* @param timeoutMs The time limit in milliseconds. * @param timeoutMs The time limit in milliseconds.
*/ */
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) { public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
Assertions.checkState(!buildCalled);
setForegroundModeTimeoutMs = timeoutMs; setForegroundModeTimeoutMs = timeoutMs;
return this; return this;
} }
......
...@@ -263,6 +263,7 @@ public class SimpleExoPlayer extends BasePlayer ...@@ -263,6 +263,7 @@ public class SimpleExoPlayer extends BasePlayer
* @param timeoutMs The time limit in milliseconds. * @param timeoutMs The time limit in milliseconds.
*/ */
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) { public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
Assertions.checkState(!buildCalled);
foregroundModeTimeoutMs = timeoutMs; foregroundModeTimeoutMs = timeoutMs;
return this; return this;
} }
......
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