diff options
author | Grant Paul <chpwn@chpwn.com> | 2010-12-11 23:28:51 -0800 |
---|---|---|
committer | Grant Paul <chpwn@chpwn.com> | 2010-12-11 23:28:51 -0800 |
commit | d817e4de92bfa802bb2122711cf70f747a64aa3f (patch) | |
tree | a46161981e4ea9ccb35d08a074e2d14cb3bf585b | |
parent | a2bd7a7305fc62b7e218cb206b56f35d3a880f28 (diff) |
Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation to parent view controllers), and such.
-rw-r--r-- | MobileCydia.mm | 6 | ||||
-rw-r--r-- | UICaboodle/RVPage.mm | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index a3d0a83..1f77e7c 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 8c702d3..4a8ea5d 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 |