Update InAppWebChromeClient.java
This commit is contained in:
parent
c0c3fdeea5
commit
e18e6910bb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue