From b65136e2920c3e3d407e43b7f07d603b77bfaa6c Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 13 Oct 2023 10:15:16 -0700 Subject: [PATCH] Remove deprecated `DownloadNotificationHelper.buildProgressNotification` Use a non deprecated method that takes a `notMetRequirements` parameter instead. PiperOrigin-RevId: 573252909 (cherry picked from commit 8b7ebc70320e66b6360df37c36d4cfc2fb71aa98) --- RELEASENOTES.md | 24 ++++++++++++++++++- .../offline/DownloadNotificationHelper.java | 15 ------------ 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index edb23d5a00..6779da254b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -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 diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/offline/DownloadNotificationHelper.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/offline/DownloadNotificationHelper.java index e0fe53ef65..856942fec8 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/offline/DownloadNotificationHelper.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/offline/DownloadNotificationHelper.java @@ -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 downloads) { - return buildProgressNotification( - context, smallIcon, contentIntent, message, downloads, /* notMetRequirements= */ 0); - } - /** * Returns a progress notification for the given downloads. *