From 34344d17e9cebc0aa3c8d7360fdb89c69eae9c2c Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 20 Jan 2016 15:53:10 +0100 Subject: [PATCH] incoming call: fix rotation --- Classes/CallIncomingView.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Classes/CallIncomingView.m b/Classes/CallIncomingView.m index 6d8d29b8d..379a50531 100644 --- a/Classes/CallIncomingView.m +++ b/Classes/CallIncomingView.m @@ -38,8 +38,8 @@ - (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; - [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneCallUpdate object:nil]; + _call = NULL; } #pragma mark - UICompositeViewDelegate Functions @@ -64,6 +64,13 @@ static UICompositeViewDescription *compositeDescription = nil; return self.class.compositeViewDescription; } +- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { + [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; + if (_call) { + [self update]; + } +} + #pragma mark - Event Functions - (void)callUpdateEvent:(NSNotification *)notif {