From 76228a0cd9bd6918f01a863351e1307debcd6afb Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sat, 11 Dec 2010 23:28:51 -0800 Subject: [PATCH] Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation to parent view controllers), and such. --- MobileCydia.mm | 6 +++--- UICaboodle/RVPage.mm | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index a3d0a836..1f77e7ce 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6977,6 +6977,8 @@ freeing the view controllers on tab change */ // 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]; } @@ -8759,8 +8761,6 @@ static _finline void _setHomePage(Cydia *self) { CYViewController *page = nil; int tag = 0; - NSLog(@"open url: %@", url); - if ((page = [self pageForURL:url hasTag:&tag])) { [self setPage:page]; tag_ = tag; @@ -8772,7 +8772,7 @@ static _finline void _setHomePage(Cydia *self) { - (void) applicationOpenURL:(NSURL *)url { [super applicationOpenURL:url]; - NSLog(@"first: %@", url); + if (!loaded_) starturl_ = [url retain]; else [self openCydiaURL:url]; } diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 8c702d30..4a8ea5de 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -11,4 +11,11 @@ } - (void) reloadData { } -@end \ No newline at end of file +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { + if ([self parentViewController]) { + return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation]; + } else { + return [super shouldAutorotateToInterfaceOrientation:orientation]; + } +} +@end -- 2.45.2