Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5766C322 for ; Sat, 8 Jun 2013 19:57:20 +0000 (UTC) Received: (qmail 57163 invoked by uid 500); 8 Jun 2013 19:57:20 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 57120 invoked by uid 500); 8 Jun 2013 19:57:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 57109 invoked by uid 99); 8 Jun 2013 19:57:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jun 2013 19:57:20 +0000 Date: Sat, 8 Jun 2013 19:57:19 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-3745) Camera callbacks - the animation of the viewcontroller may not have finished, for display of another modal viewcontroller after MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Shazron Abdullah created CB-3745: ------------------------------------ Summary: Camera callbacks - the animation of the viewcontroller may not have finished, for display of another modal viewcontroller after Key: CB-3745 URL: https://issues.apache.org/jira/browse/CB-3745 Project: Apache Cordova Issue Type: Bug Components: iOS, Plugin Camera Affects Versions: Master Reporter: Shazron Abdullah Assignee: Shazron Abdullah Priority: Minor When the success/failure handler for CDVCamera fires, the modal viewcontroller may not have been finished animating and closing. This is problematic if you are chaining showing a different viewcontroller after the camera has been dismissed, resulting in the new viewcontroller not being shown and an error in the console log. To fix this, do not send the pluginresult immediately in the camerapicker didfinish functions, but wait to send it in the completion handler of dismissViewController:completion: -- 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