CB-9148 (android) Add Support for input[type=file] File Chooser
This commit is contained in:
parent
26f7ef3c67
commit
c53be403e2
@ -729,7 +729,7 @@ public class InAppBrowser extends CordovaPlugin {
|
|||||||
inAppWebView = new WebView(cordova.getActivity());
|
inAppWebView = new WebView(cordova.getActivity());
|
||||||
inAppWebView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
inAppWebView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
||||||
inAppWebView.setId(Integer.valueOf(6));
|
inAppWebView.setId(Integer.valueOf(6));
|
||||||
// File Chooser Implemented ChromeClient
|
// File Chooser Implemented ChromeClient
|
||||||
inAppWebView.setWebChromeClient(new InAppChromeClient(thatWebView) {
|
inAppWebView.setWebChromeClient(new InAppChromeClient(thatWebView) {
|
||||||
// For Android 5.0+
|
// For Android 5.0+
|
||||||
public boolean onShowFileChooser (WebView webView, ValueCallback<Uri[]> filePathCallback, WebChromeClient.FileChooserParams fileChooserParams)
|
public boolean onShowFileChooser (WebView webView, ValueCallback<Uri[]> filePathCallback, WebChromeClient.FileChooserParams fileChooserParams)
|
||||||
|
Loading…
Reference in New Issue
Block a user