]> git.saurik.com Git - cydia.git/commitdiff
Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation...
authorGrant Paul <chpwn@chpwn.com>
Sun, 12 Dec 2010 07:28:51 +0000 (23:28 -0800)
committerGrant Paul <chpwn@chpwn.com>
Sun, 12 Dec 2010 07:28:51 +0000 (23:28 -0800)
MobileCydia.mm
UICaboodle/RVPage.mm

index a3d0a836c1526fd58c76e014856775ceea67821a..1f77e7ceb6b5126bf9c4a43c4391c5092833dfc0 100644 (file)
@@ -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];
     // 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];
     }
     } else {
         return [super shouldAutorotateToInterfaceOrientation:orientation];
     }
@@ -8759,8 +8761,6 @@ static _finline void _setHomePage(Cydia *self) {
     CYViewController *page = nil;
     int tag = 0;
 
     CYViewController *page = nil;
     int tag = 0;
 
-    NSLog(@"open url: %@", url);
-
     if ((page = [self pageForURL:url hasTag:&tag])) {
         [self setPage:page];
         tag_ = tag;
     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];
 
 - (void) applicationOpenURL:(NSURL *)url {
     [super applicationOpenURL:url];
-    NSLog(@"first: %@", url);
+
     if (!loaded_) starturl_ = [url retain];
     else [self openCydiaURL:url];
 }
     if (!loaded_) starturl_ = [url retain];
     else [self openCydiaURL:url];
 }
index 8c702d30fcbf5df864236b0ec1ee036c9cbe6033..4a8ea5de01e40ce518a7edc06b0c8fa37d5e85d4 100644 (file)
 }
 - (void) reloadData {
 }
 }
 - (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