Commit 2b1e04ec by rohks Committed by Tofunmi Adigun-Hameed

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 173e1b94307c6b5decc29d3261fbda5da73a1263)
parent 379330ee
...@@ -236,23 +236,6 @@ public abstract class DownloadService extends Service { ...@@ -236,23 +236,6 @@ public abstract class DownloadService extends Service {
} }
/** /**
* @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. * Creates a DownloadService.
* *
* @param foregroundNotificationId The notification id for the foreground notification, or {@link * @param foregroundNotificationId The notification id for the foreground notification, or {@link
......
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