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:
rohks 2023-05-16 15:23:41 +01:00 committed by Tofunmi Adigun-Hameed
parent 06c8433ce8
commit 5a72333554
2 changed files with 3 additions and 17 deletions

View file

@ -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)

View file

@ -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.
*