Skip to content

Commit

Permalink
File chooser for all file types
Browse files Browse the repository at this point in the history
  • Loading branch information
qgh committed Sep 20, 2024
1 parent 9883ebd commit f01b72d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathC
private void openImageChooserActivity() {
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("image/*");
i.setType("*/*");
// requestCode = WEBVIEW_IMAGE_CHOOSER_REQUEST_CODE + this.mViewTag
// Because webview may have multiple instances.
GlobalObject.getActivity().startActivityForResult(Intent.createChooser(i, "Image Chooser"), CocosWebViewHelper.WEBVIEW_IMAGE_CHOOSER_REQUEST_CODE + this.mViewTag);
Expand Down

0 comments on commit f01b72d

Please sign in to comment.