From 7f8523fd96528ce66afe2b6282182f3a8e8c7292 Mon Sep 17 00:00:00 2001 From: Alon Albert Date: Tue, 2 Jan 2018 08:02:48 +0200 Subject: [PATCH] Use "application/x-bittorrent" instead of "file/*" in File Picker --- .../java/org/transdroid/core/gui/search/FilePickerHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/transdroid/core/gui/search/FilePickerHelper.java b/app/src/main/java/org/transdroid/core/gui/search/FilePickerHelper.java index f6b91ced..2b02f4e7 100644 --- a/app/src/main/java/org/transdroid/core/gui/search/FilePickerHelper.java +++ b/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) { 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 {