From 72175dcb42d84b8b10f56c6fedb4108f63264b71 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 25 May 2015 16:58:44 +0200 Subject: [PATCH] LinphoneManager: change runningOnIpad to use UIuserInterfaceIdiomPad instead of #ifdef UI_USER_INTERFACE_IDIOM because somehow it is not fully working on iOS 8.2 --- Classes/LinphoneManager.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 0ca716147..3e031049a 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -194,11 +194,7 @@ struct codec_name_pref_table codec_pref_table[]={ } + (BOOL)runningOnIpad { -#ifdef UI_USER_INTERFACE_IDIOM - return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad); -#else - return NO; -#endif + return ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad); } + (BOOL)isRunningTests {