[Android] TV: Add file uri to details

Geoffrey Métais git at videolan.org
Mon Apr 18 16:07:09 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr 18 15:32:53 2016 +0200| [26a3a2317297d2651e6d5da12064f523903657a7] | committer: Geoffrey Métais

TV: Add file uri to details

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

 .../src/org/videolan/vlc/gui/tv/DetailsDescriptionPresenter.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/DetailsDescriptionPresenter.java b/vlc-android/src/org/videolan/vlc/gui/tv/DetailsDescriptionPresenter.java
index fd207a6..f3dc7b2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/DetailsDescriptionPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/DetailsDescriptionPresenter.java
@@ -20,6 +20,7 @@
  *****************************************************************************/
 package org.videolan.vlc.gui.tv;
 
+import android.net.Uri;
 import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter;
 
 public class DetailsDescriptionPresenter extends
@@ -33,9 +34,11 @@ public class DetailsDescriptionPresenter extends
         // viewHolder.getTitle().setText(details.getShortTitle());
 
         // Here we provide static data for testing purposes:
+        String body = details.getBody() == null ? Uri.decode(details.getLocation()) :
+                details.getBody()+"\n"+Uri.decode(details.getLocation());
         viewHolder.getTitle().setText(details.getTitle());
         viewHolder.getSubtitle().setText(details.getSubTitle());
-        viewHolder.getBody().setText(details.getBody());
+        viewHolder.getBody().setText(body);
     }
 
 



More information about the Android mailing list