From: Grant Paul Date: Sun, 12 Dec 2010 07:28:51 +0000 (-0800) Subject: Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation... X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/76228a0cd9bd6918f01a863351e1307debcd6afb?ds=sidebyside Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation to parent view controllers), and such. --- 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