Remove deprecated Timeline.getWindow method

PiperOrigin-RevId: 373126944
This commit is contained in:
olly 2021-05-11 13:03:51 +01:00 committed by kim-vde
parent 508c6652ba
commit b95fba2cb7
2 changed files with 2 additions and 6 deletions

View File

@ -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.

View File

@ -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.
*