We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7890db2 commit ba850bfCopy full SHA for ba850bf
src/imagepicker.android.ts
@@ -196,7 +196,11 @@ export class ImagePicker {
196
intent.putExtra("android.intent.extra.ALLOW_MULTIPLE", true);
197
}
198
199
- intent.setAction(Intent.ACTION_GET_CONTENT);
+ intent.putExtra(android.content.Intent.EXTRA_LOCAL_ONLY, true);
200
+ intent.putExtra(android.content.Intent.CATEGORY_OPENABLE, true);
201
+ intent.setData(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
202
+ intent.setAction(android.content.Intent.ACTION_PICK);
203
+
204
205
let chooser = Intent.createChooser(intent, "Select Picture");
206
application.android.foregroundActivity.startActivityForResult(intent, RESULT_CODE_PICKER_IMAGES);
0 commit comments