Skip to content
Permalink
Browse files
CB-9240 Cordova splash screen plugin iPad landscape mode issue
Aligns shouldRotate default value with parent CDVViewController behavior
  • Loading branch information
daserge committed Dec 29, 2015
1 parent d7841c7 commit 3b2e9e59124e345c61235ca132e8f519d7df8ead
Showing 1 changed file with 7 additions and 0 deletions.
@@ -35,6 +35,13 @@ - (void)setEnabledAutorotation:(BOOL)value
- (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];
}

0 comments on commit 3b2e9e5

Please sign in to comment.