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
997ea3b3
authored
Mar 16, 2021
by
kimvde
Committed by
Ian Baker
Mar 24, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Replace timeline reference equality checks in FakeMediaSource
#minor-release PiperOrigin-RevId: 363141851
parent
675b81e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSource.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSource.java
View file @
997ea3b3
...
...
@@ -204,14 +204,14 @@ public class FakeMediaSource extends BaseMediaSource {
@Override
@Nullable
public
Timeline
getInitialTimeline
()
{
return
timeline
==
null
||
timeline
==
Timeline
.
EMPTY
||
timeline
.
getWindowCount
()
==
1
return
timeline
==
null
||
timeline
.
isEmpty
()
||
timeline
.
getWindowCount
()
==
1
?
null
:
new
InitialTimeline
(
timeline
);
}
@Override
public
boolean
isSingleWindow
()
{
return
timeline
==
null
||
timeline
==
Timeline
.
EMPTY
||
timeline
.
getWindowCount
()
==
1
;
return
timeline
==
null
||
timeline
.
isEmpty
()
||
timeline
.
getWindowCount
()
==
1
;
}
@Override
...
...
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