Skip to content
Snippets Groups Projects
Commit 116ca0e6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Allow subs picking on network

parent 7a40011d
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ public class FilePickerFragment extends FileBrowserFragment {
public void onCreate(Bundle bundle) {
if (getActivity().getIntent() != null) {
Uri uri = getActivity().getIntent().getData();
if (uri == null || !TextUtils.equals(uri.getScheme(), "file")) {
if (uri == null || TextUtils.equals(uri.getScheme(), "http")) {
getActivity().setIntent(null);
}
}
......@@ -114,13 +114,13 @@ public class FilePickerFragment extends FileBrowserFragment {
return true;
if (mMrl.startsWith("file")) {
String path = Strings.removeFileProtocole(mMrl);
for (int i = 0; i < rootDirectories.length; ++i) {
if (path.startsWith(rootDirectories[i]))
for (String directory : rootDirectories) {
if (path.startsWith(directory))
return false;
}
return true;
} else
return true;
return mMrl.startsWith("http");
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment