[Android] Storages: Fix support of space in storage name

Geoffrey Métais git at videolan.org
Tue Feb 12 10:21:09 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 12 10:18:29 2019 +0100| [ac679192a43235bec8a6bd11a5fc55ae305ab18a] | committer: Geoffrey Métais

Storages: Fix support of space in storage name

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

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

diff --git a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
index ee5766e96..015ced049 100644
--- a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
+++ b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
@@ -134,7 +134,7 @@ public class AndroidDevices {
 
                 final StringTokenizer tokens = new StringTokenizer(line, " ");
                 final String device = tokens.nextToken();
-                final String mountpoint = tokens.nextToken();
+                final String mountpoint = tokens.nextToken().replaceAll("\\\\040", " ");
                 final String type = tokens.hasMoreTokens() ? tokens.nextToken() : null;
 
                 // skip if already in list or if type/mountpoint is blacklisted



More information about the Android mailing list