[Android] Fix audio player shuffle button visibility

Nicolas Pomepuy git at videolan.org
Fri Feb 4 06:09:56 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Feb  3 13:53:13 2022 +0100| [4c346fcf9c87038727418abbac4509f9b787673a] | committer: Nicolas Pomepuy

Fix audio player shuffle button visibility

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

 application/vlc-android/res/layout-land/audio_player.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/application/vlc-android/res/layout-land/audio_player.xml b/application/vlc-android/res/layout-land/audio_player.xml
index 7de9d0da9..30111a269 100644
--- a/application/vlc-android/res/layout-land/audio_player.xml
+++ b/application/vlc-android/res/layout-land/audio_player.xml
@@ -18,6 +18,10 @@
         <variable
                 name="ab_repeat_b"
                 type="Float" />
+
+        <variable
+                name="can_shuffle"
+                type="Boolean" />
     </data>
 
     <androidx.constraintlayout.widget.ConstraintLayout
@@ -683,6 +687,7 @@
                 android:layout_marginEnd="16dp"
                 android:background="?attr/actionBarItemBackground"
                 android:contentDescription="@string/shuffle_title"
+                android:visibility="@{can_shuffle ? View.VISIBLE : View.INVISIBLE}"
                 android:elevation="4dp"
                 android:focusable="true"
                 android:onClick="@{fragment::onShuffleClick}"



More information about the Android mailing list