mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
[IphoneX] update temporary VideoCallUI for iphoneX
This commit is contained in:
parent
707ea1c679
commit
76165e82da
3 changed files with 10 additions and 2 deletions
|
|
@ -358,7 +358,9 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
hideControlsTimer = nil;
|
||||
}
|
||||
|
||||
[PhoneMainView.instance fullScreen:!disabled];
|
||||
if(![PhoneMainView.instance isIphoneXDevice]){
|
||||
[PhoneMainView.instance fullScreen:!disabled];
|
||||
}
|
||||
[PhoneMainView.instance hideTabBar:!disabled];
|
||||
|
||||
if (!disabled) {
|
||||
|
|
|
|||
|
|
@ -106,4 +106,6 @@
|
|||
- (void)updateApplicationBadgeNumber;
|
||||
+ (PhoneMainView*) instance;
|
||||
|
||||
- (BOOL)isIphoneXDevice;
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -211,9 +211,13 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
#define IS_IPHONE_X (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 812.0)
|
||||
#define IPHONE_STATUSBAR_HEIGHT (IS_IPHONE_X ? 35 : 20)
|
||||
|
||||
- (BOOL)isIphoneXDevice{
|
||||
return IS_IPHONE_X;
|
||||
}
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated {
|
||||
[super viewDidAppear:animated];
|
||||
if(IS_IPHONE_X){
|
||||
if([self isIphoneXDevice]){
|
||||
if(@available(iOS 11.0, *)) {
|
||||
[self childViewControllerForHomeIndicatorAutoHidden];
|
||||
[self prefersHomeIndicatorAutoHidden];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue