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/30 10:45:12 UTC
cordova-plugin-splashscreen git commit: CB-9240 Cordova splash screen
plugin iPad landscape mode issue
Repository: cordova-plugin-splashscreen
Updated Branches:
refs/heads/CB-9240 [created] 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/CB-9240
Commit: 3b2e9e59124e345c61235ca132e8f519d7df8ead
Parents: d7841c7
Author: daserge <v-...@microsoft.com>
Authored: Tue Dec 29 22:08:02 2015 +0300
Committer: daserge <v-...@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