Browse Source

Merge pull request #406 from alonalbert/fix-upload

Use "application/x-bittorrent" instead of "file/*" in File Picker
pull/424/head
Eric Kok 6 years ago committed by GitHub
parent
commit
d1ee0513e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/org/transdroid/core/gui/search/FilePickerHelper.java

2
app/src/main/java/org/transdroid/core/gui/search/FilePickerHelper.java

@ -42,7 +42,7 @@ public class FilePickerHelper { @@ -42,7 +42,7 @@ public class FilePickerHelper {
public static void startFilePicker(final Activity activity) {
try {
// Start a file manager that can handle the file/* file/* intents
activity.startActivityForResult(new Intent(Intent.ACTION_GET_CONTENT).setType("file/*"),
activity.startActivityForResult(new Intent(Intent.ACTION_GET_CONTENT).setType("application/x-bittorrent"),
ACTIVITY_FILEPICKER);
} catch (Exception e1) {
try {

Loading…
Cancel
Save