Update InAppWebChromeClient.java

This commit is contained in:
Lorenzo Pichilli 2019-11-08 00:42:05 +01:00 committed by GitHub
parent c0c3fdeea5
commit e18e6910bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 470 additions and 471 deletions

View File

@ -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;
}
}