From 837a75c477e1f27f5fe86379a43eb06d390e1bc6 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Sat, 13 Jul 2024 18:18:19 +0800 Subject: [PATCH] get isIPhonePortrait flag ready for release --- Limelight/ViewControllers/MainFrameViewController.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 51ae01a6..a929eb86 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -1024,8 +1024,8 @@ static NSMutableSet* hostList; CGFloat screenHeightInPoints = CGRectGetHeight([[UIScreen mainScreen] bounds]); CGFloat screenWidthInPoints = CGRectGetWidth([[UIScreen mainScreen] bounds]); bool isPortrait = screenHeightInPoints > screenWidthInPoints; -// return isIPhone && isPortrait; - return isPortrait; + return isIPhone && isPortrait; + // return isPortrait; } - (void)viewDidLoad @@ -1047,10 +1047,6 @@ static NSMutableSet* hostList; [self disableUpButton]; // Set the gesture - BOOL isIPhone = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone); - CGFloat screenHeightInPoints = CGRectGetHeight([[UIScreen mainScreen] bounds]); - CGFloat screenWidthInPoints = CGRectGetWidth([[UIScreen mainScreen] bounds]); - bool isPortrait = false; if(![self isIPhonePortrait]) [self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer]; // to prevent buggy settings view in iphone portrait mode; // Get callbacks associated with the viewController