[Android] Fix root level detection in file picker

Geoffrey Métais git at videolan.org
Wed Oct 4 11:17:05 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Oct  4 11:16:38 2017 +0200| [69bb19a78a3732e95ffccc4284344c5eb6d2e2d4] | committer: Geoffrey Métais

Fix root level detection in file picker

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
index 65b31f5be..f9bdddc51 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
@@ -127,7 +127,7 @@ public class FilePickerFragment extends FileBrowserFragment {
             }
             return true;
         } else
-            return mMrl.startsWith("http");
+            return mMrl.length() < 7;
     }
 
     @Override



More information about the Android mailing list