LinphoneManager: change runningOnIpad to use UIuserInterfaceIdiomPad instead of #ifdef UI_USER_INTERFACE_IDIOM because somehow it is not fully working on iOS 8.2

This commit is contained in:
Gautier Pelloux-Prayer 2015-05-25 16:58:44 +02:00
parent 817389b9b4
commit 72175dcb42

View file

@ -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 {