[Android] Medialibrary: unify audio media description string

Duncan McNamara git at videolan.org
Tue Jul 16 11:22:43 CEST 2019


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Jul 10 17:53:46 2019 +0200| [f2117c57918f39d2831689b69201708e9f7026f7] | committer: Geoffrey Métais

Medialibrary: unify audio media description string

Audio media description in AbstractMediaWrapper's constructor had the
order "Artist - Album" where as the Tools.setMediaDesctiption had the
order "Album - Artist"

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

 medialibrary/src/org/videolan/medialibrary/Tools.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/Tools.java b/medialibrary/src/org/videolan/medialibrary/Tools.java
index 39c10f065..3ed456255 100644
--- a/medialibrary/src/org/videolan/medialibrary/Tools.java
+++ b/medialibrary/src/org/videolan/medialibrary/Tools.java
@@ -84,7 +84,7 @@ public class Tools {
                 final String artist = mw.getReferenceArtist(), album = mw.getAlbum();
                 final StringBuilder sb = new StringBuilder();
                 boolean hasArtist = !TextUtils.isEmpty(artist), hasAlbum = !TextUtils.isEmpty(album);
-                if (hasArtist && hasAlbum) sb.append(album).append(" - ").append(artist);
+                if (hasArtist && hasAlbum) sb.append(artist).append(" - ").append(album);
                 else if (hasArtist) sb.append(artist);
                 else sb.append(album);
                 item.setDescription(sb.toString());



More information about the Android mailing list