[Android] Util: Fix device filtering

Edward Wang git at videolan.org
Sun Dec 23 20:11:28 CET 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Dec 23 14:11:01 2012 -0500| [e4283529eecded8f7ddee721ec195a1442ea5406] | committer: Edward Wang

Util: Fix device filtering

/mnt/secure and friends are mount points, not devices.

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

 vlc-android/src/org/videolan/vlc/Util.java |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 8bcfe99..86dbfd9 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -418,12 +418,13 @@ public class Util {
                         continue;
 
                     if (line.contains("/dev/block/vold")) {
-                        if (!line.startsWith("/mnt/secure") &&
-                            !line.startsWith("/mnt/shell") &&
-                            !line.startsWith("/mnt/asec") &&
-                            !line.startsWith("/mnt/obb") &&
+                        if (!line.startsWith("tmpfs") &&
                             !line.startsWith("/dev/mapper") &&
-                            !line.startsWith("tmpfs")) {
+                            !s.startsWith("/mnt/secure") &&
+                            !s.startsWith("/mnt/shell") &&
+                            !s.startsWith("/mnt/asec") &&
+                            !s.startsWith("/mnt/obb")
+                            ) {
                             list.add(s);
                         }
                     }



More information about the Android mailing list