From 3149847844ec92581aa6013ae48bda2287e4ae8b Mon Sep 17 00:00:00 2001 From: Tj Fallon Date: Thu, 23 May 2019 09:56:44 -0700 Subject: [PATCH] Fixing orientation for Landscape removal. --- .../Interstitials/MPInterstitialViewController.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MoPubSDK/Internal/Interstitials/MPInterstitialViewController.m b/MoPubSDK/Internal/Interstitials/MPInterstitialViewController.m index 093918d52..5b0f23ade 100644 --- a/MoPubSDK/Internal/Interstitials/MPInterstitialViewController.m +++ b/MoPubSDK/Internal/Interstitials/MPInterstitialViewController.m @@ -229,16 +229,15 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation - (UIInterfaceOrientationMask)supportedInterfaceOrientations { - if ([[NSUserDefaults gameOrientation] isEqualToString:SKZ_LANDSCAPE_ORIENTATION]) { - return UIInterfaceOrientationMaskLandscape; - } else { - return UIInterfaceOrientationMaskPortrait; - } + // Need to return a conversation of preferredInterfaceOrientationForPresentation from our rootViewController or all. + // Trying all for now. + return UIInterfaceOrientationMaskAll; } #pragma mark - Autorotation (before iOS 6.0) - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + //Keeping this the same for the moment as it seems to work well. if ([[NSUserDefaults gameOrientation] isEqualToString:SKZ_LANDSCAPE_ORIENTATION]) { return UIInterfaceOrientationIsLandscape(interfaceOrientation); } else {