Skip to content

Commit

Permalink
Change document picker intent action type
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Jun 21, 2024
1 parent 16de273 commit e90be82
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/expo-document-picker+12.0.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/expo-document-picker/android/src/main/java/expo/modules/documentpicker/DocumentPickerModule.kt b/node_modules/expo-document-picker/android/src/main/java/expo/modules/documentpicker/DocumentPickerModule.kt
index 08cd420..ebb0b77 100644
--- a/node_modules/expo-document-picker/android/src/main/java/expo/modules/documentpicker/DocumentPickerModule.kt
+++ b/node_modules/expo-document-picker/android/src/main/java/expo/modules/documentpicker/DocumentPickerModule.kt
@@ -35,7 +35,7 @@ class DocumentPickerModule : Module() {
}
pendingPromise = promise
copyToCacheDirectory = options.copyToCacheDirectory
- val intent = Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
+ val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, options.multiple)
type = if (options.type.size > 1) {

0 comments on commit e90be82

Please sign in to comment.