Skip to content

Commit

Permalink
[ANDROID] show only local files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivpusic committed Jul 23, 2016
1 parent 45fbabf commit cb79ffc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 295 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#
.DS_Store

# android studio
*.iml
.idea
.gradle
build/

# Xcode
#
build/
Expand Down
131 changes: 0 additions & 131 deletions android/react-native-image-crop-picker.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void openPicker(final ReadableMap options, final Promise promise) {
galleryIntent.setType("image/*");
galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);
galleryIntent.setAction(Intent.ACTION_GET_CONTENT);
galleryIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);

final Intent chooserIntent = Intent.createChooser(galleryIntent, "Pick an image");
activity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST);
Expand Down
Loading

0 comments on commit cb79ffc

Please sign in to comment.