Commit 8e0d0c4c by kimvde Committed by marcbaechinger

Replace timeline reference equality checks in FakeMediaSource

#minor-release

PiperOrigin-RevId: 363141851
parent 0d052e03
......@@ -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