fix crash

This commit is contained in:
crazecoder 2019-11-04 17:05:52 +08:00
parent 17c005561b
commit ff097334c1
1 changed files with 1 additions and 3 deletions

View File

@ -519,9 +519,7 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis
public boolean onShowFileChooser( public boolean onShowFileChooser(
WebView webView, ValueCallback<Uri[]> filePathCallback, WebView webView, ValueCallback<Uri[]> filePathCallback,
FileChooserParams fileChooserParams) { FileChooserParams fileChooserParams) {
if (mUploadMessageArray == null) { mUploadMessageArray = filePathCallback;
mUploadMessageArray = filePathCallback;
}
Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT); Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT);
contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE); contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);