[Android] Util: getMediaSubtitle: return "" for all except AUDIO

Thomas Guillem git at videolan.org
Wed Jan 21 15:43:35 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 21 15:42:08 2015 +0100| [fd28aa067d56229e53e27ffc658a9602e2200b9a] | committer: Thomas Guillem

Util: getMediaSubtitle: return "" for all except AUDIO

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=fd28aa067d56229e53e27ffc658a9602e2200b9a
---

 vlc-android/src/org/videolan/vlc/util/Util.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/Util.java b/vlc-android/src/org/videolan/vlc/util/Util.java
index e030de4..6c398ea 100644
--- a/vlc-android/src/org/videolan/vlc/util/Util.java
+++ b/vlc-android/src/org/videolan/vlc/util/Util.java
@@ -237,12 +237,12 @@ public class Util {
     }
 
     public static String getMediaSubtitle(Context ctx, MediaWrapper media) {
-        if (media.getType() == MediaWrapper.TYPE_VIDEO)
-            return "";
-        else
+        if (media.getType() == MediaWrapper.TYPE_AUDIO)
             return media.getNowPlaying() != null
                         ? media.getNowPlaying()
                         : getMediaArtist(ctx, media) + " - " + getMediaAlbum(ctx, media);
+        else
+            return "";
     }
 
     @TargetApi(android.os.Build.VERSION_CODES.GINGERBREAD)



More information about the Android mailing list