[Android] Decode title

Geoffrey Métais git at videolan.org
Tue Jan 3 17:13:07 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan  3 14:29:44 2017 +0100| [b9d243be7856f8fff48d7d4e4c041e7cf11579a4] | committer: Geoffrey Métais

Decode title

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

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

diff --git a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
index 4aa57e8..f52a9d1 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
@@ -246,7 +246,7 @@ public class MediaWrapper extends MediaLibraryItem implements Parcelable {
         mWidth = width;
         mHeight = height;
 
-        mTitle = title != null ? title.trim() : null;
+        mTitle = title != null ? Uri.decode(title.trim()) : null;
         mArtist = artist != null ? artist.trim() : null;
         mGenre = genre != null ? genre.trim() : null;
         mAlbum = album != null ? album.trim() : null;



More information about the Android mailing list