Browse Source

Use "application/x-bittorrent" instead of "file/*" in File Picker

pull/406/head
Alon Albert 7 years ago
parent
commit
7f8523fd96
  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 {
public static void startFilePicker(final Activity activity) { public static void startFilePicker(final Activity activity) {
try { try {
// Start a file manager that can handle the file/* file/* intents // 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); ACTIVITY_FILEPICKER);
} catch (Exception e1) { } catch (Exception e1) {
try { try {

Loading…
Cancel
Save