cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [03/17] cordova-plugin-splashscreen git commit: CB-10606 fix deprecation warning for interfaceOrientation
Date Fri, 15 Apr 2016 20:49:42 GMT
CB-10606 fix deprecation warning for interfaceOrientation

This closes #82


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/e401a4de
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/e401a4de
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/e401a4de

Branch: refs/heads/3.2.x
Commit: e401a4de0ffa50769e982494f5024b35a31a3380
Parents: 2e1ec32
Author: Edna Morales <edna592@gmail.com>
Authored: Fri Feb 12 23:05:50 2016 -0500
Committer: Edna Morales <edna592@gmail.com>
Committed: Mon Feb 15 19:34:38 2016 -0500

----------------------------------------------------------------------
 src/ios/CDVSplashScreen.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/e401a4de/src/ios/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m
index 110a0ca..2883201 100644
--- a/src/ios/CDVSplashScreen.m
+++ b/src/ios/CDVSplashScreen.m
@@ -327,7 +327,7 @@
     CGRect imgBounds = (img) ? CGRectMake(0, 0, img.size.width, img.size.height) : CGRectZero;
 
     CGSize screenSize = [self.viewController.view convertRect:[UIScreen mainScreen].bounds
fromView:nil].size;
-    UIInterfaceOrientation orientation = self.viewController.interfaceOrientation;
+    UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
     CGAffineTransform imgTransform = CGAffineTransformIdentity;
 
     /* If and only if an iPhone application is landscape-only as per


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


Mime
View raw message