Index: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
diff --git a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
index 98b67a57e8b88d9e139ebc61160b58d2f193ab4b..afddda79172c8f3778c2155412c9b157552fb10d 100644 |
--- a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
+++ b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
@@ -22,6 +22,7 @@ import android.content.Context; |
import android.graphics.Bitmap; |
import android.graphics.Canvas; |
import android.graphics.Color; |
+import android.net.Uri; |
import android.net.http.SslError; |
import android.os.Build; |
import android.os.Handler; |
@@ -575,6 +576,20 @@ public class AdblockWebView extends WebView |
extWebChromeClient.onProgressChanged(view, newProgress); |
} |
} |
+ |
+ @Override |
+ public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, |
+ FileChooserParams fileChooserParams) |
+ { |
+ if (extWebChromeClient != null) |
+ { |
+ return extWebChromeClient.onShowFileChooser(webView, filePathCallback, fileChooserParams); |
+ } |
+ else |
+ { |
+ return super.onShowFileChooser(webView, filePathCallback, fileChooserParams); |
+ } |
+ } |
}; |
public int getAllowDrawDelay() |