From ff097334c13c3ad325620b3deea2c8e3345cd6e4 Mon Sep 17 00:00:00 2001 From: crazecoder <21527312@qq.com> Date: Mon, 4 Nov 2019 17:05:52 +0800 Subject: [PATCH] fix crash --- .../InAppWebView/InAppWebChromeClient.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebChromeClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebChromeClient.java index 40bf70a7..b4735422 100644 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebChromeClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebChromeClient.java @@ -519,9 +519,7 @@ public class InAppWebChromeClient extends WebChromeClient implements PluginRegis public boolean onShowFileChooser( WebView webView, ValueCallback filePathCallback, FileChooserParams fileChooserParams) { - if (mUploadMessageArray == null) { - mUploadMessageArray = filePathCallback; - } + mUploadMessageArray = filePathCallback; Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT); contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);