diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0cd7d665c8..12fbd9688c 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -6,6 +6,10 @@ * Remove long deprecated symbols: * `DefaultLoadControl` constructors - Use `DefaultLoadControl.Builder` instead. + * `PlayerView.setDefaultArtwork(Bitmap)` - Use + `PlayerView.setDefaultArtwork(Drawable)` instead. + * `PlayerView.setShowBuffering(boolean)` - Use + `PlayerView.setShowBuffering(int)` instead. * Remove deprecated interface `AdaptiveMediaSourceEventListener`. Use `MediaSourceEventListener` instead. * Add a `LivePlaybackSpeedControl` component to control the playback speed diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java index a480b6375a..8208e980ba 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java @@ -671,19 +671,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider return defaultArtwork; } - /** - * Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is - * present in the media. - * - * @param defaultArtwork the default artwork to display. - * @deprecated use (@link {@link #setDefaultArtwork(Drawable)} instead. - */ - @Deprecated - public void setDefaultArtwork(@Nullable Bitmap defaultArtwork) { - setDefaultArtwork( - defaultArtwork == null ? null : new BitmapDrawable(getResources(), defaultArtwork)); - } - /** * Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is * present in the media. @@ -776,18 +763,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider } } - /** - * Sets whether a buffering spinner is displayed when the player is in the buffering state. The - * buffering spinner is not displayed by default. - * - * @deprecated Use {@link #setShowBuffering(int)} - * @param showBuffering Whether the buffering icon is displayed - */ - @Deprecated - public void setShowBuffering(boolean showBuffering) { - setShowBuffering(showBuffering ? SHOW_BUFFERING_WHEN_PLAYING : SHOW_BUFFERING_NEVER); - } - /** * Sets whether a buffering spinner is displayed when the player is in the buffering state. The * buffering spinner is not displayed by default.