incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From becka...@apache.org
Subject [14/50] git commit: fixes CB-153 - Camera default destination should be FILE_URI
Date Fri, 13 Jan 2012 15:59:06 GMT
fixes CB-153 - Camera default destination should be FILE_URI


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/49a18648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/49a18648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/49a18648

Branch: refs/heads/master
Commit: 49a1864855b1a0c7a2877cabf7e0e25d6813244b
Parents: 85f578a
Author: Becky Gibson <gibson.becky@gmail.com>
Authored: Fri Jan 6 04:47:19 2012 +0800
Committer: Becky Gibson <gibson.becky@gmail.com>
Committed: Fri Jan 6 22:24:53 2012 +0800

----------------------------------------------------------------------
 PhoneGapLib/Classes/Camera.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/49a18648/PhoneGapLib/Classes/Camera.m
----------------------------------------------------------------------
diff --git a/PhoneGapLib/Classes/Camera.m b/PhoneGapLib/Classes/Camera.m
index 4a47eff..a580b22 100644
--- a/PhoneGapLib/Classes/Camera.m
+++ b/PhoneGapLib/Classes/Camera.m
@@ -69,7 +69,7 @@
         self.pickerController.encodingType = [[options valueForKey:@"encodingType"] intValue]
|| EncodingTypeJPEG;
         
         self.pickerController.quality = [options integerValueForKey:@"quality" defaultValue:100
withRange:NSMakeRange(0, 100)];
-        self.pickerController.returnType = (DestinationType)[options integerValueForKey:@"destinationType"
defaultValue:0 withRange:NSMakeRange(0, 2)];
+        self.pickerController.returnType = (DestinationType)[options integerValueForKey:@"destinationType"
defaultValue:1 withRange:NSMakeRange(0, 2)];
        
         if (sourceType == UIImagePickerControllerSourceTypeCamera) {
             // we only allow taking pictures (no video) in this api


Mime
View raw message