[
https://issues.apache.org/jira/browse/CB-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558815#comment-13558815
]
Andrew Grieve commented on CB-2165:
-----------------------------------
I don't think we should support this since it's not how most people expect
boolean parameters to work. In all browser APIs, "false" ==> true. For example:
adsf = document.createElement('input');
adsf.checked
false
adsf.checked = "false"
"false"
adsf.checked
true
If you think this is biting a lot of people, then maybe we could check that
people pass in the correct types and throw an exception instead of coercing
them to booleans.
> The "saveToPhotoAlbum" option for Camera.getPicture does not work with
> Cordova 2.2/Android
> ------------------------------------------------------------------------------------------
>
> Key: CB-2165
> URL: https://issues.apache.org/jira/browse/CB-2165
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 2.2.0
> Environment: Cordova 2.2, Android 2.3.4
> Reporter: Thomas Dinger
> Assignee: Andrew Grieve
> Priority: Minor
>
> The following JS call results in a call to the success function when the
> picture is taken, but the picture is not added to the photo library.
> 01-08 09:27:53.470: D/CordovaLog(4089): getPicture() {
> 01-08 09:27:53.470: D/CordovaLog(4089): "targetHeight": "600",
> 01-08 09:27:53.470: D/CordovaLog(4089): "targetWidth": "600",
> 01-08 09:27:53.470: D/CordovaLog(4089): "saveToPhotoAlbum": "true",
> 01-08 09:27:53.470: D/CordovaLog(4089): "quality": "50",
> 01-08 09:27:53.470: D/CordovaLog(4089): "destinationType": 1,
> 01-08 09:27:53.470: D/CordovaLog(4089): "mediaType": 0,
> 01-08 09:27:53.470: D/CordovaLog(4089): "encodingType": 0,
> 01-08 09:27:53.470: D/CordovaLog(4089): "allowEdit": "false",
> 01-08 09:27:53.470: D/CordovaLog(4089): "sourceType": 1
> 01-08 09:27:53.470: D/CordovaLog(4089): }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira