[Android] Human readable path for browsers subtitle

Geoffrey Métais git at videolan.org
Wed Apr 27 16:16:47 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 27 16:16:15 2016 +0200| [fda3c8132d0d320ee796a78a2adf983065ba54d7] | committer: Geoffrey Métais

Human readable path for browsers subtitle

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 8a54c50..3cd0005 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -201,7 +201,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
         if (!TextUtils.isEmpty(mrl)) {
             if (this instanceof FileBrowserFragment && mrl.startsWith(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY))
                 mrl = getString(R.string.internal_memory)+mrl.substring(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY.length());
-            mrl = mrl.replaceAll("://", " ").replaceAll("/", " > ");
+            mrl = Uri.decode(mrl).replaceAll("://", " ").replaceAll("/", " > ");
         }
         return mCurrentMedia != null ? mrl : null;
     }



More information about the Android mailing list