diff --git a/Classes/LinphoneUI/UICallCell.m b/Classes/LinphoneUI/UICallCell.m index 6d484055e..866c8a7ee 100644 --- a/Classes/LinphoneUI/UICallCell.m +++ b/Classes/LinphoneUI/UICallCell.m @@ -84,6 +84,7 @@ @synthesize detailsLeftSwipeGestureRecognizer; @synthesize detailsRightSwipeGestureRecognizer; + #pragma mark - Lifecycle Functions - (id)initWithIdentifier:(NSString*)identifier { @@ -122,11 +123,21 @@ [UICallCell adaptSize:videoDownloadBandwidthHeaderLabel field:videoDownloadBandwidthLabel]; [UICallCell adaptSize:videoUploadBandwidthHeaderLabel field:videoUploadBandwidthLabel]; [UICallCell adaptSize:videoIceConnectivityHeaderLabel field:videoIceConnectivityLabel]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(applicationWillEnterForeground:) + name:UIApplicationWillEnterForegroundNotification + object:nil]; } return self; } - (void)dealloc { + [[NSNotificationCenter defaultCenter] removeObserver:self + name:UIApplicationWillEnterForegroundNotification + object:nil]; + + [headerBackgroundImage release]; [headerBackgroundHighlightImage release]; @@ -177,6 +188,7 @@ } + #pragma mark - Properties Functions - (void)setData:(UICallCellData *)adata { @@ -263,6 +275,15 @@ } +#pragma mark - Event Functions + +- (void)applicationWillEnterForeground:(NSNotification*)notif { + if (currentCall) { + [self startBlinkAnimation:@"blink" target:headerBackgroundHighlightImage]; + } +} + + #pragma mark - Animation Functions - (void)startBlinkAnimation:(NSString *)animationID target:(UIView *)target {