Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HashirRajah committed Feb 14, 2024
1 parent b15d703 commit 16c0d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/ImagePicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public boolean execute(String action, final JSONArray args, final CallbackContex
this.maxImageCount = params.has("maximumImagesCount") ? params.getInt("maximumImagesCount") : 20;

PickVisualMediaRequest pickVisualMediaRequest = new PickVisualMediaRequest();
pickVisualMediaRequest.setMediaType$activity_release(ActivityResultContracts.PickVisualMedia.ImageOnly.INSTANCE);
Intent imagePickerIntent = new ActivityResultContracts.PickMultipleVisualMedia().createIntent(cordova.getContext(), pickVisualMediaRequest);
imagePickerIntent.setType("image/*");
cordova.startActivityForResult(this, imagePickerIntent, SELECT_PICTURE);
this.showMaxLimitWarning();
return true;
Expand Down

0 comments on commit 16c0d26

Please sign in to comment.