Skip to content

Commit 803e3ac

Browse files
committed
Change intent type from get content to open document
1 parent 8d262c8 commit 803e3ac

File tree

1 file changed

+1
-1
lines changed
  • imagepicker/src/main/kotlin/com/github/drjacky/imagepicker/util

1 file changed

+1
-1
lines changed

imagepicker/src/main/kotlin/com/github/drjacky/imagepicker/util/IntentUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object IntentUtils {
4141
*/
4242
private fun getGalleryDocumentIntent(mimeTypes: Array<String>): Intent {
4343
// Show Document Intent
44-
val intent = Intent(Intent.ACTION_GET_CONTENT).applyImageTypes(mimeTypes)
44+
val intent = Intent(Intent.ACTION_OPEN_DOCUMENT).applyImageTypes(mimeTypes)
4545
intent.addCategory(Intent.CATEGORY_OPENABLE)
4646
intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION)
4747
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)

0 commit comments

Comments
 (0)