CB-7558 - hasPendingOperation flag in Camera plugin's takePicture should be reversed to fix memory errors

Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
Wang Jinggang
2014-06-05 15:56:45 +08:00
committed by Shazron Abdullah
parent 43cb385f0e
commit 513bfde49e
+2 -2
View File
@@ -82,7 +82,7 @@ static NSSet* org_apache_cordova_validArrowDirections;
NSString* callbackId = command.callbackId;
NSArray* arguments = command.arguments;
self.hasPendingOperation = NO;
self.hasPendingOperation = YES;
NSString* sourceTypeString = [arguments objectAtIndex:2];
UIImagePickerControllerSourceType sourceType = UIImagePickerControllerSourceTypeCamera; // default
@@ -161,7 +161,7 @@ static NSSet* org_apache_cordova_validArrowDirections;
} else {
[self.viewController presentViewController:cameraPicker animated:YES completion:nil];
}
self.hasPendingOperation = YES;
self.hasPendingOperation = NO;
}
- (void)repositionPopover:(CDVInvokedUrlCommand*)command