正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -344,6 +344,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi | @@ -344,6 +344,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi | ||
| 344 | 344 | ||
| 345 | if (cropping || mediaType.equals("photo")) { | 345 | if (cropping || mediaType.equals("photo")) { |
| 346 | final Intent libraryIntent = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI); | 346 | final Intent libraryIntent = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI); |
| 347 | + libraryIntent.setType("image/*"); | ||
| 347 | activity.startActivityForResult(libraryIntent, IMAGE_PICKER_REQUEST); | 348 | activity.startActivityForResult(libraryIntent, IMAGE_PICKER_REQUEST); |
| 348 | return; | 349 | return; |
| 349 | } | 350 | } |
-
请 注册 或 登录 后发表评论