Skip to content

Commit

Permalink
fix(android): Avoid crash on input file (#4707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jun 9, 2021
1 parent baeed45 commit 883c0fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ private void showFilePicker(final ValueCallback<Uri[]> filePathCallback, FileCho
if (fileChooserParams.getAcceptTypes().length > 1) {
String[] validTypes = getValidTypes(fileChooserParams.getAcceptTypes());
intent.putExtra(Intent.EXTRA_MIME_TYPES, validTypes);
if (intent.getType().startsWith(".")) {
intent.setType(validTypes[0]);
}
}
try {
activityListener =
Expand Down

0 comments on commit 883c0fe

Please sign in to comment.