From 4b1f07d26cb04e1c786b15a6d9a8b92c498e52f6 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 1 Feb 2017 17:09:56 +0100 Subject: [PATCH] Fix UI bug : display _backButton in dialer when rotation and at least one call --- Classes/DialerView.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classes/DialerView.m b/Classes/DialerView.m index b09b2224d..766085646 100644 --- a/Classes/DialerView.m +++ b/Classes/DialerView.m @@ -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 {