From 1742460e74557b1703849d900041a4634f22dbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=B3=E5=85=86=E9=B2=81?= <1756404649@qq.com> Date: Wed, 23 Oct 2024 09:25:49 +0800 Subject: [PATCH] Fixed an issue where null was returned when picking up files on Redmi NOTE 9 Fixed an issue that always returned null when selecting files on Redmi NOTE 9 --- .../com/mr/flutter/plugin/filepicker/FilePickerDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerDelegate.java b/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerDelegate.java index 0f0f6dd3..f5554680 100644 --- a/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerDelegate.java +++ b/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerDelegate.java @@ -300,7 +300,7 @@ private void startFileExplorer() { } if (intent.resolveActivity(this.activity.getPackageManager()) != null) { - this.activity.startActivityForResult(Intent.createChooser(intent, null), REQUEST_CODE); + this.activity.startActivityForResult(intent, REQUEST_CODE); } else { Log.e(TAG, "Can't find a valid activity to handle the request. Make sure you've a file explorer installed."); finishWithError("invalid_format_type", "Can't handle the provided file type.");