Commit b800d0f6 authored by crazecoder's avatar crazecoder

fix crash

parent ff097334
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment