You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/01/18 02:01:28 UTC

[2/2] android commit: Fixed Android 4.2 filepicker, time for master

Updated Branches:
  refs/heads/master 0311f0db3 -> 1193f7ed2


Fixed Android 4.2 filepicker, time for master


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/1193f7ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/1193f7ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/1193f7ed

Branch: refs/heads/master
Commit: 1193f7ed22c44dce0baaa5ef082305a422898849
Parents: a120614
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Jan 17 17:00:50 2013 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Jan 17 17:00:50 2013 -0800

----------------------------------------------------------------------
 .../org/apache/cordova/CordovaChromeClient.java    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1193f7ed/framework/src/org/apache/cordova/CordovaChromeClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java
index 315025f..4b30894 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<Uri> uploadMsg, String acceptType ) {
+        this.openFileChooser(uploadMsg, acceptType, null);
+    }
+    
+    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture)
+    {
         mUploadMessage = uploadMsg;
         Intent i = new Intent(Intent.ACTION_GET_CONTENT);
         i.addCategory(Intent.CATEGORY_OPENABLE);