summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm6
-rw-r--r--UICaboodle/RVPage.mm9
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