[Android] Fix name display for scanned directories

Geoffrey Métais git at videolan.org
Tue May 12 16:41:48 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 12 16:41:12 2015 +0200| [645993f49b3990528e0c260a57a317e834e3b28b] | committer: Geoffrey Métais

Fix name display for scanned directories

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

 .../src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java        |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index e420651..38b9a57 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -22,6 +22,7 @@
  */
 package org.videolan.vlc.gui.browser;
 
+import android.net.Uri;
 import android.support.v7.widget.RecyclerView;
 import android.text.TextUtils;
 import android.view.LayoutInflater;
@@ -195,7 +196,7 @@ public class BaseBrowserAdapter extends  RecyclerView.Adapter<RecyclerView.ViewH
         }
 
         public String getName() {
-            return name;
+            return Uri.decode(name);
         }
 
         public void setName(String name) {



More information about the Android mailing list