Remove deprecated zero-arg DefaultTrackSelector constructor

Use `DefaultTrackSelector(Context)` instead.

#minor-release

PiperOrigin-RevId: 533985937
This commit is contained in:
ibaker 2023-05-22 09:04:39 +01:00 committed by tonihei
parent 5008417c8c
commit 2b409da881
2 changed files with 4 additions and 8 deletions

View File

@ -88,6 +88,8 @@
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
setter methods instead.
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
* Remove deprecated zero-arg `DefaultTrackSelector` constructor, use
`DefaultTrackSelector(Context)` instead.
### 1.0.2 (2023-05-18)

View File

@ -2225,14 +2225,6 @@ public class DefaultTrackSelector extends MappingTrackSelector
@GuardedBy("lock")
private AudioAttributes audioAttributes;
/**
* @deprecated Use {@link #DefaultTrackSelector(Context)} instead.
*/
@Deprecated
public DefaultTrackSelector() {
this(Parameters.DEFAULT_WITHOUT_CONTEXT, new AdaptiveTrackSelection.Factory());
}
/**
* @param context Any {@link Context}.
*/
@ -2260,6 +2252,8 @@ public class DefaultTrackSelector extends MappingTrackSelector
* @deprecated Use {@link #DefaultTrackSelector(Context, TrackSelectionParameters,
* ExoTrackSelection.Factory)}
*/
// TODO: When this constructor is deleted, this.context can be made non-null and all
// null-conditional can be removed (including the warning logging when it's null).
@Deprecated
public DefaultTrackSelector(
TrackSelectionParameters parameters, ExoTrackSelection.Factory trackSelectionFactory) {