Commit 629ba83
committed
Fix: Use
This change modifies the `startFileExplorer` function to use `Intent.ACTION_GET_CONTENT` instead of `Intent.ACTION_OPEN_DOCUMENT`.
This resolves an issue where `ACTION_OPEN_DOCUMENT`, combined with `Intent.CATEGORY_OPENABLE`, could lead to hangs or crashes when picking files from certain providers like Google Drive, OneDrive, or Dropbox, especially when the files are not available locally on the device. `ACTION_GET_CONTENT` is more suitable for importing a copy of the data.ACTION_GET_CONTENT instead of ACTION_OPEN_DOCUMENT for file picking1 parent ed5206e commit 629ba83
File tree
1 file changed
+1
-1
lines changed- android/src/main/kotlin/com/mr/flutter/plugin/filepicker
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments