[Android] Fix Uri parsing for network favorites

Geoffrey Métais git at videolan.org
Fri Jun 12 11:59:40 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 12 11:54:50 2015 +0200| [b6a51965744ba88554c878c18967d88eb59fcd43] | committer: Geoffrey Métais

Fix Uri parsing for network favorites

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

 vlc-android/src/org/videolan/vlc/MediaDatabase.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaDatabase.java b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
index 48c3a81..727cc02 100644
--- a/vlc-android/src/org/videolan/vlc/MediaDatabase.java
+++ b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
@@ -1074,7 +1074,7 @@ public class MediaDatabase {
                 null, null, null, null, null);
 
         while (cursor.moveToNext()) {
-            mw = new MediaWrapper(AndroidUtil.LocationToUri(cursor.getString(0)));
+            mw = new MediaWrapper(Uri.parse(Uri.decode(cursor.getString(0))));
             mw.setTitle(Uri.decode(cursor.getString(1)));
             mw.setType(MediaWrapper.TYPE_DIR);
             favs.add(mw);



More information about the Android mailing list