mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Remove deprecated DownloadNotificationHelper.buildProgressNotification
Use a non deprecated method that takes a `notMetRequirements` parameter
instead.
PiperOrigin-RevId: 573252909
(cherry picked from commit 8b7ebc7032)
This commit is contained in:
parent
3244318d28
commit
b65136e292
2 changed files with 23 additions and 16 deletions
|
|
@ -18,7 +18,29 @@
|
|||
* Remove `ExoplayerCuesDecoder`. Text tracks with `sampleMimeType =
|
||||
application/x-media3-cues` are now directly handled by `TextRenderer`
|
||||
without needing a `SubtitleDecoder` instance.
|
||||
|
||||
* Metadata:
|
||||
* DRM:
|
||||
* Effect:
|
||||
* Muxers:
|
||||
* IMA extension:
|
||||
* Session:
|
||||
* UI:
|
||||
* Downloads:
|
||||
* OkHttp Extension:
|
||||
* Cronet Extension:
|
||||
* RTMP Extension:
|
||||
* HLS Extension:
|
||||
* DASH Extension:
|
||||
* Smooth Streaming Extension:
|
||||
* RTSP Extension:
|
||||
* Decoder Extensions (FFmpeg, VP9, AV1, MIDI, etc.):
|
||||
* Leanback extension:
|
||||
* Cast Extension:
|
||||
* Test Utilities:
|
||||
* Remove deprecated symbols:
|
||||
* Remove deprecated `DownloadNotificationHelper.buildProgressNotification`
|
||||
method, use a non deprecated method that takes a `notMetRequirements`
|
||||
parameter instead.
|
||||
|
||||
## 1.2
|
||||
|
||||
|
|
|
|||
|
|
@ -51,21 +51,6 @@ public final class DownloadNotificationHelper {
|
|||
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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue