[Android] DirectoryAdapter: convert path to URI first

Edward Wang git at videolan.org
Sun Jun 24 18:13:35 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jun 24 12:12:22 2012 -0400| [2aba14468ee3023bd1494e32a1bdf21b084667a7] | committer: Edward Wang

DirectoryAdapter: convert path to URI first

Pointed-out-by: Sébastien Toque <xilasz at gmail.com>

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=2aba14468ee3023bd1494e32a1bdf21b084667a7
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index 2230761..a7b1902 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -287,7 +287,7 @@ public class DirectoryAdapter extends BaseAdapter {
         DirectoryAdapter.Node selectedNode = mCurrentNode.children.get(position);
         if(selectedNode.isFile()) return false;
         try {
-            this.mCurrentDir = new URI(this.mCurrentDir + "/" + selectedNode.name).normalize().getPath();
+            this.mCurrentDir = new URI(LibVLC.getExistingInstance().nativeToURI(this.mCurrentDir + "/" + selectedNode.name)).normalize().getPath();
             this.mCurrentDir = Util.stripTrailingSlash(this.mCurrentDir);
         } catch (URISyntaxException e) {
             /* blah blah blah blah blah */



More information about the Android mailing list