[Android] Fix tablet layout never shown for the mini player
Nicolas Pomepuy
git at videolan.org
Tue Jul 18 12:36:28 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jul 18 11:47:39 2023 +0200| [e66a6c665c027e11e71d450eed6ae44e89ef4421] | committer: Nicolas Pomepuy
Fix tablet layout never shown for the mini player
Fixes #2902
> https://code.videolan.org/videolan/vlc-android/commit/e66a6c665c027e11e71d450eed6ae44e89ef4421
---
application/vlc-android/res/layout/audio_player.xml | 4 ++++
.../vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerAnimator.kt | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/res/layout/audio_player.xml b/application/vlc-android/res/layout/audio_player.xml
index 4aff1034f7..f245bb6ba2 100644
--- a/application/vlc-android/res/layout/audio_player.xml
+++ b/application/vlc-android/res/layout/audio_player.xml
@@ -392,6 +392,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onClick"
+ android:visibility="gone"
+ tools:visibility="visible"
android:textColor="?attr/audio_chips_text_color"
app:chipBackgroundColor="?attr/audio_chips_color"
app:chipIcon="@drawable/ic_speed"
@@ -404,6 +406,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onClick"
+ android:visibility="gone"
+ tools:visibility="visible"
android:textColor="?attr/audio_chips_text_color"
app:chipBackgroundColor="?attr/audio_chips_color"
app:chipIcon="@drawable/ic_sleep"
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 9165ff1e5a..6384950f55 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
@@ -24,10 +24,8 @@
package org.videolan.vlc.gui.audio
-import android.annotation.TargetApi
import android.content.res.Configuration
import android.net.Uri
-import android.os.Build
import android.view.View
import android.view.animation.AccelerateDecelerateInterpolator
import android.widget.ImageView
@@ -78,6 +76,7 @@ internal class AudioPlayerAnimator : IAudioPlayerAnimator, LifecycleObserver {
defaultBackgroundId = UiTools.getResourceFromAttribute(requireActivity(), R.attr.background_default)
lifecycle.addObserver(this at AudioPlayerAnimator)
initConstraintSets()
+ startConstraintAnimation(showCover)
}
@DrawableRes
More information about the Android
mailing list