Skip to content

Commit

Permalink
fix(android): allow single input file selection from samsumg gallery (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 28, 2023
1 parent 4499b6b commit 3d57ecd
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,7 @@ private void showFilePicker(final ValueCallback<Uri[]> filePathCallback, FileCho
activityResult -> {
Uri[] result;
Intent resultIntent = activityResult.getData();
if (
activityResult.getResultCode() == Activity.RESULT_OK &&
resultIntent.getClipData() != null &&
resultIntent.getClipData().getItemCount() > 1
) {
if (activityResult.getResultCode() == Activity.RESULT_OK && resultIntent.getClipData() != null) {
final int numFiles = resultIntent.getClipData().getItemCount();
result = new Uri[numFiles];
for (int i = 0; i < numFiles; i++) {
Expand Down

0 comments on commit 3d57ecd

Please sign in to comment.