-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change document picker intent action type
- Loading branch information
1 parent
16de273
commit e90be82
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |