This is an automated email from the ASF dual-hosted git repository.

macdonst pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-camera.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c90555  CB-13854(ios): fix Camera opens in portrait orientation on 
iphones
7c90555 is described below

commit 7c90555bd4bfbbdfe23f357f130eb1bbb7e4fce6
Author: Julio César <jcesarmob...@gmail.com>
AuthorDate: Sun Feb 11 13:08:40 2018 +0100

    CB-13854(ios): fix Camera opens in portrait orientation on iphones
---
 src/ios/CDVCamera.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m
index 37b4ec8..c71de05 100644
--- a/src/ios/CDVCamera.m
+++ b/src/ios/CDVCamera.m
@@ -206,6 +206,7 @@ static NSString* toBase64(NSData* data) {
                 [weakSelf displayPopover:pictureOptions.popoverOptions];
                 weakSelf.hasPendingOperation = NO;
             } else {
+                cameraPicker.modalPresentationStyle = 
UIModalPresentationCurrentContext;
                 [weakSelf.viewController presentViewController:cameraPicker 
animated:YES completion:^{
                     weakSelf.hasPendingOperation = NO;
                 }];

-- 
To stop receiving notification emails like this one, please contact
macdo...@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to