cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-plugin-splashscreen git commit: CB-8351 ios: Stop using deprecated IsIpad macro
Date Tue, 27 Jan 2015 15:20:41 GMT
Repository: cordova-plugin-splashscreen
Updated Branches:
  refs/heads/master e86a9cc7a -> c3a5867c8


CB-8351 ios: Stop using deprecated IsIpad macro


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

Branch: refs/heads/master
Commit: c3a5867c81d207a32ab33ee3d2ee5c3c8b8e450e
Parents: e86a9cc
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Jan 27 10:20:17 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Jan 27 10:20:17 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/c3a5867c/src/ios/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m
index f65a501..c28ae2f 100644
--- a/src/ios/CDVSplashScreen.m
+++ b/src/ios/CDVSplashScreen.m
@@ -234,7 +234,8 @@
      * landscape. In this case the image must be rotated in order to appear
      * correctly.
      */
-    if (UIInterfaceOrientationIsLandscape(orientation) && !CDV_IsIPad()) {
+    BOOL isIPad = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad;
+    if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad) {
         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


Mime
View raw message