Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java

Issue 29709555: Issue 6418 - Override `onShowFileChooser` method (Closed)
Patch Set: Created Feb. 26, 2018, 6:45 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld