[Android] Fix audio player chips overlapping media switcher in mini player

Nicolas Pomepuy git at videolan.org
Tue Feb 8 14:39:35 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Feb  4 08:09:09 2022 +0100| [ff5259e04503544a64f720502d8b58df4468bfc0] | committer: Nicolas Pomepuy

Fix audio player chips overlapping media switcher in mini player

The chips (as playback speed's one) were overlapping the mini player
media switcher when in cover mode.

> https://code.videolan.org/videolan/vlc-android/commit/ff5259e04503544a64f720502d8b58df4468bfc0
---

 .../vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt
index 2aaf4b4e0..416967c39 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt
@@ -232,6 +232,8 @@ internal class AudioPlayerAnimator : IAudioPlayerAnimator, LifecycleObserver {
         if (showCover) {
             binding.audioMediaSwitcher.translationY = translationOffset * 48.dp
             binding.audioMediaSwitcher.alpha = 1 - slideOffset
+            binding.playbackChips.translationY = -(1 - translationOffset) * 48.dp
+            binding.playbackChips.alpha = slideOffset
         } else {
             binding.audioMediaSwitcher.translationY = 0F
             binding.audioMediaSwitcher.alpha = 1F



More information about the Android mailing list