Commit 9066652b by ibaker Committed by Tofunmi Adigun-Hameed

Remove deprecated zero-arg `DefaultTrackSelector` constructor

Use `DefaultTrackSelector(Context)` instead.

#minor-release

PiperOrigin-RevId: 533985937
(cherry picked from commit a8928fba7f13ddd1033368b69d601da1e8bfb852)
parent 01e5f461
...@@ -2219,14 +2219,6 @@ public class DefaultTrackSelector extends MappingTrackSelector ...@@ -2219,14 +2219,6 @@ public class DefaultTrackSelector extends MappingTrackSelector
private AudioAttributes audioAttributes; 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}. * @param context Any {@link Context}.
*/ */
public DefaultTrackSelector(Context context) { public DefaultTrackSelector(Context context) {
...@@ -2253,6 +2245,8 @@ public class DefaultTrackSelector extends MappingTrackSelector ...@@ -2253,6 +2245,8 @@ public class DefaultTrackSelector extends MappingTrackSelector
* @deprecated Use {@link #DefaultTrackSelector(Context, TrackSelectionParameters, * @deprecated Use {@link #DefaultTrackSelector(Context, TrackSelectionParameters,
* ExoTrackSelection.Factory)} * 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 @Deprecated
public DefaultTrackSelector( public DefaultTrackSelector(
TrackSelectionParameters parameters, ExoTrackSelection.Factory trackSelectionFactory) { TrackSelectionParameters parameters, ExoTrackSelection.Factory trackSelectionFactory) {
......
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