From 5e565049e26ac6541df632c31981bacde7bf980c Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Thu, 27 Jan 2011 17:44:39 -0800 Subject: Sanity in rotation handling: centralize in CYViewController, as it should be. --- MobileCydia.mm | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 2079a6a..4421211 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4030,7 +4030,7 @@ static NSString *Warning_; @end /* }}} */ /* Emulated Loading Controller {{{ */ -@interface CYEmulatedLoadingController : UIViewController { +@interface CYEmulatedLoadingController : CYViewController { CYLoadingIndicator *indicator_; UITabBar *tabbar_; UINavigationBar *navbar_; @@ -4062,10 +4062,6 @@ static NSString *Warning_; } return self; } -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return (IsWildcat_ || orientation == UIInterfaceOrientationPortrait); -} - @end /* }}} */ @@ -6241,10 +6237,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return self; } -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; -} - - (void) setUpdate:(NSDate *)date { [self beginUpdate]; } @@ -6480,17 +6472,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { @implementation CYNavigationController -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - // Inherit autorotation settings for modal parents. - if ([self parentViewController] && [[self parentViewController] modalViewController] == self) { - return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation]; - } else if ([self parentViewController]) { - return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation]; - } else { - return [super shouldAutorotateToInterfaceOrientation:orientation]; - } -} - - (void) dealloc { [super dealloc]; } @@ -8183,9 +8164,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return self; } -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; -} @end /* }}} */ -- cgit v1.2.3