diff --git a/RELEASENOTES.md b/RELEASENOTES.md index e3a79cc3d9..fc80bc0c13 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -28,6 +28,8 @@ `setUsePreviousAction`, `setUseNextActionInCompactView` and `setUsePreviousActionInCompactView` instead. * Remove `Format.create` methods. Use `Format.Builder` instead. + * Remove `Timeline.getWindow(int, Window, boolean)`. Use + `Timeline.getWindow(int, Window)` instead, which will always set tags. * Remove `CastPlayer` specific playlist manipulation methods. Use `setMediaItems`, `addMediaItems`, `removeMediaItem` and `moveMediaItem` instead. diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java b/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java index 79d21ab048..082cdf494b 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Timeline.java @@ -1042,12 +1042,6 @@ public abstract class Timeline implements Bundleable { return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); } - /** @deprecated Use {@link #getWindow(int, Window)} instead. Tags will always be set. */ - @Deprecated - public final Window getWindow(int windowIndex, Window window, boolean setTag) { - return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); - } - /** * Populates a {@link Window} with data for the window at the specified index. *