diff --git a/RELEASENOTES.md b/RELEASENOTES.md index f12907b972..4febfc7466 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -11,8 +11,7 @@ * Add `LiveConfiguration` to `MediaItem` to allow media-specific live offset and live playback speed settings. The same settings can be set for all `MediaItems` in `DefaultMediaSourceFactory`. - * Add `targetLiveOffsetUs` parameter to - `LoadControl.shouldStartPlayback`. + * Add `targetLiveOffsetUs` parameter to `LoadControl.shouldStartPlayback`. * Verify correct thread usage in `SimpleExoPlayer` by default. Opt-out is still possible until the next major release using `setThrowsWhenUsingWrongThread(false)` @@ -71,13 +70,14 @@ enough space. * Update StyledPlayer's control overlay scrim from 30% opacity to 60% opacity for Accessibility requirements. + * Switch `StyledPlayerControlView` button controls to borderless ripples. * DRM: * Fix playback failure when switching from PlayReady protected content to Widevine or Clearkey protected content in a playlist. * Downloads: - * Fix crash in `DownloadManager` that could occur when adding a stopped - download with the same ID as a download currently being removed - ([#8419](https://github.com/google/ExoPlayer/issues/8419)). + * Fix crash in `DownloadManager` that could occur when adding a stopped + download with the same ID as a download currently being removed + ([#8419](https://github.com/google/ExoPlayer/issues/8419)). * Analytics: * Pass a `DecoderReuseEvaluation` to `AnalyticsListener`'s `onVideoInputFormatChanged` and `onAudioInputFormatChanged` methods. The diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlViewLayoutManager.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlViewLayoutManager.java index 5399435164..4045559ccb 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlViewLayoutManager.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlViewLayoutManager.java @@ -571,9 +571,16 @@ import java.util.List; styledPlayerControlView.getHeight() - styledPlayerControlView.getPaddingBottom() - styledPlayerControlView.getPaddingTop(); + + int centerControlWidth = + getWidthWithMargins(centerControls) + - (centerControls != null + ? (centerControls.getPaddingLeft() + centerControls.getPaddingRight()) + : 0); + int defaultModeMinimumWidth = Math.max( - getWidthWithMargins(centerControls), + centerControlWidth, getWidthWithMargins(timeView) + getWidthWithMargins(overflowShowButton)); int defaultModeMinimumHeight = getHeightWithMargins(centerControls) + 2 * getHeightWithMargins(bottomBar); diff --git a/library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml b/library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml deleted file mode 100644 index 5e4dd5550f..0000000000 --- a/library/ui/src/main/res/drawable-v21/exo_ripple_ffwd.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml b/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml deleted file mode 100644 index 9f7e1fd027..0000000000 --- a/library/ui/src/main/res/drawable/exo_ripple_ffwd.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/library/ui/src/main/res/drawable/exo_ripple_rew.xml b/library/ui/src/main/res/drawable/exo_ripple_rew.xml deleted file mode 100644 index 5562b1352c..0000000000 --- a/library/ui/src/main/res/drawable/exo_ripple_rew.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/library/ui/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml b/library/ui/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml new file mode 100644 index 0000000000..18166f71f6 --- /dev/null +++ b/library/ui/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml @@ -0,0 +1,20 @@ + + + + +