[Android] Fix history media uri encoding
Geoffrey Métais
git at videolan.org
Thu Feb 15 14:16:01 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 15 14:15:19 2018 +0100| [0f3594c4d79ad0d8827b0be5469bf4140349c3d6] | committer: Geoffrey Métais
Fix history media uri encoding
> https://code.videolan.org/videolan/vlc-android/commit/0f3594c4d79ad0d8827b0be5469bf4140349c3d6
---
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 6e87efa6d..0d01f8d0f 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