Commit 997ea3b3 by kimvde Committed by Ian Baker

Replace timeline reference equality checks in FakeMediaSource

#minor-release

PiperOrigin-RevId: 363141851
parent 675b81e5
......@@ -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
......
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