[Android] Fix history media uri encoding

Geoffrey Métais git at videolan.org
Thu Feb 15 14:15:43 CET 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 15 14:15:19 2018 +0100| [cecf7b489c4b065f4d414a1d2c73a407ebd8480b] | committer: Geoffrey Métais

Fix history media uri encoding

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

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 934c48196..38665ceee 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -269,7 +269,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                         if (internalMedia != null && internalMedia.id != 0L)
                             id = internalMedia.id
                         else {
-                            internalMedia = medialibrary.addMedia(mw.uri.toString())
+                            internalMedia = medialibrary.addMedia(Uri.decode(mw.uri.toString()))
                             if (internalMedia != null)
                                 id = internalMedia.id
                         }



More information about the Android mailing list