Skip to content

Commit 0e932e0

Browse files
author
Miguel Ruivo
authored
Merge pull request #1618 from nespjin/fix/pick_files_returns_null_on_redmi_note9
Fixed an issue where null was returned when picking up files
2 parents a5ea096 + 1742460 commit 0e932e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private void startFileExplorer() {
300300
}
301301

302302
if (intent.resolveActivity(this.activity.getPackageManager()) != null) {
303-
this.activity.startActivityForResult(Intent.createChooser(intent, null), REQUEST_CODE);
303+
this.activity.startActivityForResult(intent, REQUEST_CODE);
304304
} else {
305305
Log.e(TAG, "Can't find a valid activity to handle the request. Make sure you've a file explorer installed.");
306306
finishWithError("invalid_format_type", "Can't handle the provided file type.");

0 commit comments

Comments
 (0)