Commit e18e6910 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli Committed by GitHub

Update InAppWebChromeClient.java

parent c0c3fdee
......@@ -521,7 +521,6 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis
WebView webView, ValueCallback<Uri[]> filePathCallback,
FileChooserParams fileChooserParams) {
mUploadMessageArray = filePathCallback;
try {
Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT);
contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);
......@@ -541,10 +540,6 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis
return true;
}
private MethodChannel getChannel() {
return (inAppBrowserActivity != null) ? InAppBrowserFlutterPlugin.inAppBrowser.channel : flutterWebView.channel;
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
......@@ -553,4 +548,8 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis
}
return false;
}
private MethodChannel getChannel() {
return (inAppBrowserActivity != null) ? InAppBrowserFlutterPlugin.inAppBrowser.channel : flutterWebView.channel;
}
}
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