Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Classes/DLCImagePickerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking
staticPicture = [[GPUImagePicture alloc] initWithImage:outputImage smoothlyScaleOutput:YES];
staticPictureOriginalOrientation = outputImage.imageOrientation;
isStatic = YES;
[self dismissModalViewControllerAnimated:YES];
[self dismissViewControllerAnimated:YES completion:nil];
[self.cameraToggleButton setEnabled:NO];
[self.flashToggleButton setEnabled:NO];
[self prepareStaticFilter];
Expand All @@ -627,10 +627,10 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
if (isStatic) {
// TODO: fix this hack
[self dismissModalViewControllerAnimated:NO];
[self dismissViewControllerAnimated:NO completion:nil];
[self.delegate imagePickerControllerDidCancel:self];
} else {
[self dismissModalViewControllerAnimated:YES];
[self dismissViewControllerAnimated:YES completion:nil];
[self retakePhoto:nil];
}
}
Expand Down