fix crash

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

View File

@ -532,7 +532,7 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis
chooserIntent.putExtra(Intent.EXTRA_TITLE, "Image Chooser");
chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentArray);
((inAppBrowserActivity != null) ? inAppBrowserActivity : flutterWebView.activity).startActivityForResult(chooserIntent, FILECHOOSER_RESULTCODE);
return true;
return super.onShowFileChooser(webView, filePathCallback, fileChooserParams);
}
private MethodChannel getChannel() {