cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [1/2] android commit: Implemented a conditional check to support providing the duration limit for the Android platform SDK 8 and above. The value is passed using the string literal value to ensure the logic is not dependent on SDK version specifics.
Date Mon, 18 Mar 2013 15:24:45 GMT
Implemented a conditional check to support providing the duration limit for the Android platform
SDK 8 and above. The value is passed using the string literal value to ensure the logic is
not dependent on SDK version specifics.


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

Branch: refs/heads/master
Commit: 1648f161d9f3dfe90d4aa0580f284b5fdc2afff5
Parents: 9fa6cea
Author: Richard Burton <mrburton@gmail.com>
Authored: Thu Mar 14 12:21:59 2013 -0700
Committer: Braden Shepherdson <braden.shepherdson@gmail.com>
Committed: Mon Mar 18 11:23:21 2013 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/Capture.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1648f161/framework/src/org/apache/cordova/Capture.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Capture.java b/framework/src/org/apache/cordova/Capture.java
index e6b94bc..5f737ca 100644
--- a/framework/src/org/apache/cordova/Capture.java
+++ b/framework/src/org/apache/cordova/Capture.java
@@ -219,7 +219,7 @@ public class Capture extends CordovaPlugin {
         Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
 
         if(Build.VERSION.SDK_INT > 8){
-            intent.putExtra(android.provider.MediaStore.EXTRA_DURATION_LIMIT, duration);
+            intent.putExtra("android.intent.extra.durationLimit", duration);
         }
         this.cordova.startActivityForResult((CordovaPlugin) this, intent, CAPTURE_VIDEO);
     }


Mime
View raw message