[Android] Fix playlist item visibility issue

Nicolas Pomepuy git at videolan.org
Mon Apr 1 15:35:28 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Feb 28 09:01:35 2019 +0100| [228c3d14bea6c83d068af3b6ea2fc20f491846ab] | committer: Geoffrey Métais

Fix playlist item visibility issue

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

 vlc-android/res/layout/audio_browser_item.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index 5e73865c7..8952f12ce 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -56,6 +56,7 @@
             android:layout_marginBottom="8dp"
             android:background="@{cover}"
             android:onClick="@{holder::onImageClick}"
+            android:visibility="@{(item.getItemType() & (MediaLibraryItem.TYPE_ALBUM|MediaLibraryItem.TYPE_ARTIST|MediaLibraryItem.TYPE_MEDIA)) != 0 ? View.VISIBLE : View.GONE, default=gone}"
             vlc:layout_constraintBottom_toBottomOf="parent"
             vlc:layout_constraintDimensionRatio="1"
             vlc:layout_constraintStart_toStartOf="parent"



More information about the Android mailing list