[ 
https://issues.apache.org/jira/browse/CB-11716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445370#comment-15445370
 ] 

Alexander Sorokin commented on CB-11716:
----------------------------------------

Hey Kerri,
The short answer is: because we can! I agree that your approach is more logical 
although it doesn't allow us to get the second picture if the first take is, 
for example, canceled by user.

Anyway, this issue was found accidentally during Appium runs and me and 
[~vladimir.kotikov] thought that it is worthy to investigate and fix, assuming 
that the problem is in our code.

> Two intersecting calls to camera.getPicture() fail
> --------------------------------------------------
>
>                 Key: CB-11716
>                 URL: https://issues.apache.org/jira/browse/CB-11716
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Plugin Camera
>    Affects Versions: Master
>         Environment: Android 4.4
>            Reporter: Alexander Sorokin
>            Priority: Minor
>              Labels: found-by-ci, triaged
>
> In the following example, two separate gallery apps open and upon selection, 
> only the second error callback is called:
> (options.sourceType is PHOTOLIBRARY)
> {code}
> navigator.camera.getPicture(function () {
>     console.log('First getPicture() win!');
> }, function () {
>     console.log('First getPicture() error!');
> }, options);
> setTimeout(function () {
>     navigator.camera.getPicture(function () {
>         console.log('Second getPicture() win!');
>     }, function () {
>         console.log('Second getPicture() error!');
>     }, options);
> }, 1000);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to