incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1619) Camera shutter remains closed when returning to app
Date Thu, 11 Oct 2012 21:59:02 GMT

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

Andrew Grieve commented on CB-1619:
-----------------------------------

Seems a bit risky to me to use unsafe_unretained to store this. Does it fix the problem if
you just add the last line of your diff:

	
+    self.pickerController = nil;

So that we never re-use it?
                
> Camera shutter remains closed when returning to app 
> ----------------------------------------------------
>
>                 Key: CB-1619
>                 URL: https://issues.apache.org/jira/browse/CB-1619
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Becky Gibson
>            Assignee: Becky Gibson
>             Fix For: 2.2.0
>
>
> Reported in the PhoneGap Group:  https://groups.google.com/forum/?fromgroups=#!topic/phonegap/gXLi2ov6St4.
> I can reproduce in edge verion (Oct. 11, 2012) using Mobile-spec.
> 1) run Mobile-spec and invoke manual camera test
> 2) select take picture and cancel rather than taking a picture.
> 3) navigate back to test list from Camera test page(may not be necessary)
> 4) press home button to leave app
> 5) open app again
> 6) select manual camera test
> 7) select take picture button and shutter does not open
> in the stackoverflow discussion it was suggested that a weak reference to the UIImagePickerController
rather than a strong one fixes the problem.  My initial testing indicates that this is the
case.  Need to do more testing and code review.  I suspect this also happens in capture image
code.

--
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

Mime
View raw message