Fix UI bug : display _backButton in dialer when rotation and at least one call

This commit is contained in:
Benjamin Reis 2017-02-01 17:09:56 +01:00
parent 5f5385645a
commit 4b1f07d26c

View file

@ -169,6 +169,13 @@ static UICompositeViewDescription *compositeDescription = nil;
frame.origin = CGPointMake(0, 0);
_videoPreview.frame = frame;
_padView.hidden = !IPAD && UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
if (linphone_core_get_calls_nb(LC)) {
_backButton.hidden = FALSE;
_addContactButton.hidden = TRUE;
} else {
_backButton.hidden = TRUE;
_addContactButton.hidden = FALSE;
}
}
- (void)viewDidAppear:(BOOL)animated {