From 1193f7ed22c44dce0baaa5ef082305a422898849 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 17 Jan 2013 17:00:50 -0800 Subject: [PATCH] Fixed Android 4.2 filepicker, time for master --- framework/src/org/apache/cordova/CordovaChromeClient.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java index 315025fe..4b30894c 100755 --- a/framework/src/org/apache/cordova/CordovaChromeClient.java +++ b/framework/src/org/apache/cordova/CordovaChromeClient.java @@ -385,6 +385,11 @@ public class CordovaChromeClient extends WebChromeClient { } public void openFileChooser( ValueCallback uploadMsg, String acceptType ) { + this.openFileChooser(uploadMsg, acceptType, null); + } + + public void openFileChooser(ValueCallback uploadMsg, String acceptType, String capture) + { mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE);