mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated DownloadManager
constructor
Use the constructor that takes an `Executor` instead. #minor-release PiperOrigin-RevId: 534370613
This commit is contained in:
parent
230921e4ab
commit
ff0f1c4e9c
@ -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
|
||||
|
@ -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}.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user