[
https://issues.apache.org/jira/browse/CB-11716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Sorokin updated CB-11716:
-----------------------------------
Description:
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}
was:
In the following example, two separate gallery apps open and upon selection,
only the second error callback is called:
{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}
> 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
> 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: [email protected]
For additional commands, e-mail: [email protected]