New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix crash ios gallery #2810
fix crash ios gallery #2810
Conversation
@@ -210,7 +210,12 @@ +( void )showImagePicker:( int )sourceType : ( IOSImagePicker * )handler | |||
// Confirm event | |||
delegate->imagePickerControllerDidFinishPickingMediaWithInfo = ^( UIImagePickerController * picker, NSDictionary * info ) | |||
{ | |||
Q_UNUSED( picker ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this row?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is used on line 223, so it is not unused
Q_UNUSED( picker ) | ||
if ( delegate->processingPicture ) | ||
{ | ||
qWarning() << "Image Picker: Already processing other photo (imagePickerControllerDidFinishPickingMediaWithInfo)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use CoreUtils::log, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an error that user or support would need to be notified about - if user selects 2 images in quick succession, only one is taken and other one is discarded .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Verified on 2.4.0 RC (iOS: 2.4.0 (23.10.471911)) |
fix #1540
fix CU-862keccax
it looks like if the user is really quick he can select another photo in the gallery when the first one is being processed in
imagePickerControllerDidFinishPickingMediaWithInfo
and unfortunately I do not see a way to hide that dialog fast enough. The view delegate is not reused between 2 select/capture actions so I addedBOOL
to block the second (another) selection while the first one is being proceeded.