Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
62eb5453
authored
Apr 16, 2021
by
kimvde
Committed by
Oliver Woodman
Apr 20, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add missing checks to ExoPlayer Builders
PiperOrigin-RevId: 368851903
parent
19c267b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
View file @
62eb5453
...
@@ -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
;
}
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
62eb5453
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment