forked from mirrors/linphone-iphone
Restart animation after background mode
This commit is contained in:
parent
15db9f3749
commit
3882552cc0
1 changed files with 21 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue