mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
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:
parent
817389b9b4
commit
72175dcb42
1 changed files with 1 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue