incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei Gu (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-308) camera.getPicture default destination has been FILE_URI but in code there is an error that it's wrong FILE_URL not correct FILE_URI
Date Sat, 10 Mar 2012 15:50:57 GMT
camera.getPicture default destination has been FILE_URI but in code there is an error that
it's wrong FILE_URL not correct FILE_URI
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: CB-308
                 URL: https://issues.apache.org/jira/browse/CB-308
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.5.0
            Reporter: Lei Gu
            Assignee: Joe Bowser


I found that error when I'm reviewing the code on Github.The file is 'framework/assets/js/cordova.android.js'.
The wrong code snippet in function cameraExport.getPicture is:

    var destinationType = Camera.DestinationType.FILE_URL;  // wrong const var name, should
be FILE_URI
    if (typeof options.destinationType == "number") {
        destinationType = options.destinationType;
    }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message