You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2015/12/25 12:08:09 UTC

[2/2] cordova-plugin-splashscreen git commit: CB-10244 Don't rotate the iPhone 6 Plus splash

CB-10244 Don't rotate the iPhone 6 Plus splash


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/fa3b6652
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/fa3b6652
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/fa3b6652

Branch: refs/heads/master
Commit: fa3b6652238faf6854157b6e646069eb35bb55a5
Parents: 875ccbf
Author: daserge <v-...@microsoft.com>
Authored: Tue Dec 22 17:28:53 2015 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Dec 22 17:28:53 2015 +0300

----------------------------------------------------------------------
 src/ios/CDVSplashScreen.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/fa3b6652/src/ios/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m
index 711688b..b34a926 100644
--- a/src/ios/CDVSplashScreen.m
+++ b/src/ios/CDVSplashScreen.m
@@ -318,8 +318,8 @@
      * landscape. In this case the image must be rotated in order to appear
      * correctly.
      */
-    BOOL isIPad = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad;
-    if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad)
+    CDV_iOSDevice device = [self getCurrentDevice];
+    if (UIInterfaceOrientationIsLandscape(orientation) && !device.iPhone6Plus && !device.iPad)
     {
         imgTransform = CGAffineTransformMakeRotation(M_PI / 2);
         imgBounds.size = CGSizeMake(imgBounds.size.height, imgBounds.size.width);


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