mirror of
https://github.com/samsonjs/media.git
synced 2026-04-16 13:05:46 +00:00
Remove deprecated DownloadService constructor
Use a non deprecated constructor that includes the option to provide a `channelDescriptionResourceId` parameter.
#minor-release
PiperOrigin-RevId: 532450975
(cherry picked from commit 022a05c376)
This commit is contained in:
parent
06c8433ce8
commit
5a72333554
2 changed files with 3 additions and 17 deletions
|
|
@ -29,6 +29,9 @@
|
|||
* Remove `DownloadHelper.forProgressive`, `DownloadHelper.forHls`,
|
||||
`DownloadHelper.forDash`, and `DownloadHelper.forSmoothStreaming`, use
|
||||
`DownloadHelper.forMediaItem` instead.
|
||||
* Remove deprecated `DownloadService` constructor, use a non deprecated
|
||||
constructor that includes the option to provide a
|
||||
`channelDescriptionResourceId` parameter.
|
||||
|
||||
### 1.0.2 (2023-05-18)
|
||||
|
||||
|
|
|
|||
|
|
@ -236,23 +236,6 @@ public abstract class DownloadService extends Service {
|
|||
/* channelDescriptionResourceId= */ 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #DownloadService(int, long, String, int, int)}.
|
||||
*/
|
||||
@Deprecated
|
||||
protected DownloadService(
|
||||
int foregroundNotificationId,
|
||||
long foregroundNotificationUpdateInterval,
|
||||
@Nullable String channelId,
|
||||
@StringRes int channelNameResourceId) {
|
||||
this(
|
||||
foregroundNotificationId,
|
||||
foregroundNotificationUpdateInterval,
|
||||
channelId,
|
||||
channelNameResourceId,
|
||||
/* channelDescriptionResourceId= */ 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a DownloadService.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue