[Android] Hide media length when we don't know it

Geoffrey Métais git at videolan.org
Mon Mar 14 17:44:41 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 14 17:43:49 2016 +0100| [d6484dc684567ec85781832c8c52bcf9418a9ae1] | committer: Geoffrey Métais

Hide media length when we don't know it

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

 vlc-android/res/layout/playlist_item.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/playlist_item.xml b/vlc-android/res/layout/playlist_item.xml
index 5db01ae..41982ab 100644
--- a/vlc-android/res/layout/playlist_item.xml
+++ b/vlc-android/res/layout/playlist_item.xml
@@ -69,7 +69,8 @@
             android:layout_toLeftOf="@+id/item_more"
             android:layout_marginRight="5dip"
             android:gravity="center_vertical"
-            android:text="@{Strings.millisToString(media.length)}" />
+            android:text="@{Strings.millisToString(media.length)}"
+            android:visibility="@{media.length > 0 ? View.VISIBLE : View.GONE}"/>
 
         <ImageView
             android:id="@+id/item_more"



More information about the Android mailing list