Remove deprecated DownloadManager constructor

Use the constructor that takes an `Executor` instead.

#minor-release

PiperOrigin-RevId: 534370613
This commit is contained in:
ibaker 2023-05-23 11:57:43 +01:00 committed by tonihei
parent 230921e4ab
commit ff0f1c4e9c
2 changed files with 5 additions and 17 deletions

View File

@ -89,6 +89,11 @@
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
* Remove deprecated zero-arg `DefaultTrackSelector` constructor, use
`DefaultTrackSelector(Context)` instead.
* Remove deprecated `OfflineLicenseHelper` constructor, use
`OfflineLicenseHelper(DefaultDrmSessionManager,
DrmSessionEventListener.EventDispatcher)` instead.
* Remove deprecated `DownloadManager` constructor, use the constructor
that takes an `Executor` instead.
* Remove `ExoPlayer.setHandleWakeLock(boolean)`, use `setWakeMode(int)`
instead.
* Remove deprecated

View File

@ -193,23 +193,6 @@ public final class DownloadManager {
private List<Download> downloads;
private RequirementsWatcher requirementsWatcher;
/**
* Constructs a {@link DownloadManager}.
*
* @param context Any context.
* @param databaseProvider Provides the SQLite database in which downloads are persisted.
* @param cache A cache to be used to store downloaded data. The cache should be configured with
* an {@link CacheEvictor} that will not evict downloaded content, for example {@link
* NoOpCacheEvictor}.
* @param upstreamFactory A {@link Factory} for creating {@link DataSource}s for downloading data.
* @deprecated Use {@link #DownloadManager(Context, DatabaseProvider, Cache, Factory, Executor)}.
*/
@Deprecated
public DownloadManager(
Context context, DatabaseProvider databaseProvider, Cache cache, Factory upstreamFactory) {
this(context, databaseProvider, cache, upstreamFactory, Runnable::run);
}
/**
* Constructs a {@link DownloadManager}.
*