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 {