Fix onTimelineChanged call (timeline should never be null).

Issue: #2186

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=141790023
This commit is contained in:
olly 2016-12-12 11:36:20 -08:00 committed by Oliver Woodman
parent ac9813729f
commit 2a79931ec5
2 changed files with 3 additions and 3 deletions

View File

@ -120,8 +120,8 @@ public interface ExoPlayer {
* removed from the timeline. The will <em>not</em> be reported via a separate call to
* {@link #onPositionDiscontinuity()}.
*
* @param timeline The latest timeline, or null if the timeline is being cleared.
* @param manifest The latest manifest, or null if the manifest is being cleared.
* @param timeline The latest timeline. Never null, but may be empty.
* @param manifest The latest manifest. May be null.
*/
void onTimelineChanged(Timeline timeline, Object manifest);

View File

@ -125,7 +125,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
timeline = Timeline.EMPTY;
manifest = null;
for (EventListener listener : listeners) {
listener.onTimelineChanged(null, null);
listener.onTimelineChanged(timeline, manifest);
}
}
if (tracksSelected) {