]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVPage.mm
Workaround to fix the Settings Controller popup on initial launch.
[cydia.git] / UICaboodle / RVPage.mm
index 4a8ea5de01e40ce518a7edc06b0c8fa37d5e85d4..81c8739c37b145f3aef6f788e5a17d52aa49d907 100644 (file)
@@ -6,16 +6,12 @@
 #import "RVBook.h"
 
 @implementation CYViewController
-- (void)setDelegate:(id)delegate {
+- (void) setDelegate:(id)delegate {
     delegate_ = delegate;
 }
 - (void) reloadData {
 }
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
-    if ([self parentViewController]) {
-        return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
-    } else {
-        return [super shouldAutorotateToInterfaceOrientation:orientation];
-    }
+- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+    return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait);
 }
 @end