fix(android): Fix several Android file upload issues (#1302 by @hojason117)

[skip ci]
This commit is contained in:
Jason Chia-Hsien Ho
2020-05-26 19:59:08 -07:00
committed by GitHub
parent da31ab56f0
commit 89886c820d
2 changed files with 144 additions and 65 deletions
@@ -971,8 +971,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
String[] acceptTypes = fileChooserParams.getAcceptTypes();
boolean allowMultiple = fileChooserParams.getMode() == WebChromeClient.FileChooserParams.MODE_OPEN_MULTIPLE;
Intent intent = fileChooserParams.createIntent();
return getModule(mReactContext).startPhotoPickerIntent(filePathCallback, intent, acceptTypes, allowMultiple);
return getModule(mReactContext).startPhotoPickerIntent(filePathCallback, acceptTypes, allowMultiple);
}
@Override