Remove deprecated DownloadNotificationHelper.buildProgressNotification
Use a non deprecated method that takes a `notMetRequirements` parameter instead. #minor-release PiperOrigin-RevId: 573252909
This commit is contained in:
parent
40459f7212
commit
8b7ebc7032
@ -38,6 +38,9 @@
|
|||||||
* Cast Extension:
|
* Cast Extension:
|
||||||
* Test Utilities:
|
* Test Utilities:
|
||||||
* Remove deprecated symbols:
|
* Remove deprecated symbols:
|
||||||
|
* Remove deprecated `DownloadNotificationHelper.buildProgressNotification`
|
||||||
|
method, use a non deprecated method that takes a `notMetRequirements`
|
||||||
|
parameter instead.
|
||||||
|
|
||||||
## 1.2
|
## 1.2
|
||||||
|
|
||||||
|
@ -51,21 +51,6 @@ public final class DownloadNotificationHelper {
|
|||||||
new NotificationCompat.Builder(context.getApplicationContext(), channelId);
|
new NotificationCompat.Builder(context.getApplicationContext(), channelId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #buildProgressNotification(Context, int, PendingIntent, String, List,
|
|
||||||
* int)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public Notification buildProgressNotification(
|
|
||||||
Context context,
|
|
||||||
@DrawableRes int smallIcon,
|
|
||||||
@Nullable PendingIntent contentIntent,
|
|
||||||
@Nullable String message,
|
|
||||||
List<Download> downloads) {
|
|
||||||
return buildProgressNotification(
|
|
||||||
context, smallIcon, contentIntent, message, downloads, /* notMetRequirements= */ 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a progress notification for the given downloads.
|
* Returns a progress notification for the given downloads.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user