cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-plugin-splashscreen git commit: CB-9240 Cordova splash screen plugin iPad landscape mode issue
Date Wed, 30 Dec 2015 09:46:16 GMT
Repository: cordova-plugin-splashscreen
Updated Branches:
  refs/heads/master d7841c7ec -> 3b2e9e591


CB-9240 Cordova splash screen plugin iPad landscape mode issue

Aligns shouldRotate default value with parent CDVViewController behavior


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

Branch: refs/heads/master
Commit: 3b2e9e59124e345c61235ca132e8f519d7df8ead
Parents: d7841c7
Author: daserge <v-seshak@microsoft.com>
Authored: Tue Dec 29 22:08:02 2015 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Tue Dec 29 22:08:02 2015 +0300

----------------------------------------------------------------------
 src/ios/CDVViewController+SplashScreen.m | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/3b2e9e59/src/ios/CDVViewController+SplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVViewController+SplashScreen.m b/src/ios/CDVViewController+SplashScreen.m
index 5736b6f..e483def 100644
--- a/src/ios/CDVViewController+SplashScreen.m
+++ b/src/ios/CDVViewController+SplashScreen.m
@@ -35,6 +35,13 @@
 - (BOOL)enabledAutorotation
 {
     NSNumber *number =  (NSNumber *)objc_getAssociatedObject(self, @selector(enabledAutorotation));
+
+    // Defaulting to YES to correspond parent CDVViewController behavior
+    if (number == nil)
+    {
+        return YES;
+    }
+
     return [number boolValue];
 }
 


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


Mime
View raw message